1
I’m sending an email through Mail
of Laravel 5
$data = Input::all();
Mail::send('mails.sendteste', $data, function ($message) {
$message->from('[email protected]', 'Sistema');
$message->subject('Teste');
$message->to('[email protected]');
});
I’m using the above code that loads a view that contains CSS scripts but when the email comes to me, it doesn’t read the css and the email is all unformatted..
Have some way to set up the Headers as done in pure php?
Note: I tried to use the Laravel Mail Css Inline but had no effect.
Where are you opening the emails for testing? This site shows css support in different email clients https://www.campaignmonitor.com/css/ and css link as it is not supported in Gmail for example.
– Daniel Beff
@Danielbeff in Outlook 2013
– Silvio Andorinha
I believe that you have to change the template and put the inline css in the view. Support for external links in email clients is limited. So take a look at guides like this https://www.campaignmonitor.com/css/ to know what email clients you want to support to tailor their layout/view to them.
– Daniel Beff