HTML email sent by Laravel MailGun driver is not displayed property by GMail -


when using mailtrap driver in laravel 5, html email displayed properly. when switched use mailgun driver email , check in gmail, css styling not working properly.

here sample original email displayed gmail:

to: user@gmail.com mime-version: 1.0 content-type: text/html; charset=utf-8 content-transfer-encoding: quoted-printable  <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.= w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns=3d"http://www.= w3.org/1999/xhtml"> <head>     <meta name=3d"viewport" content=3d"width= =3ddevice-width" />     <meta http-equiv=3d"content-type" content=3d"text= /html; charset=3dutf-8" />     <title>ischolar registration</title>    =  <style type=3d"text/css">         /* -----------------------------------= -- 

i can see lines appended = symbol.

here how send email:

mail::send(    'email.activation',    ['activationcode' => $activation->code, 'email' => $email],    function ($message) use ($email) {       $message->from('test@test.com', 'registration');       $message->to($email);       $message->subject('activate account');    } ); 

what recommended way send html email using mailgun rest driver in laravel 5?

this not related mailgun @ all. template displayed properly, css must inlined. used tools described in https://litmus.com/help/email-clients/gmail-no-head/ solve this.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -