Support the ongoing development of Laravel.io →
posted 10 years ago
Blade Mail
Last updated 2 years ago.
0

I'm not familiar with Ink, but are you correctly inlining all your CSS when sending the email? As far as I know, you can't use stylesheets with HTML email and all CSS needs to be inlined as style="..." attributes before sending.

Does it work outside of Laravel? If so, maybe compare the raw HTML in the email and see what's different.

Last updated 2 years ago.
0

As @Daniel15 pointed out, you need to use inline css. That's such a pain. Luckily, there're plugins/bundles/packages that might help.

I've only used maichimp bundle, but you can checkout the following items.

http://premailer.dialect.ca/api

https://github.com/tijsverkoyen/CssToInlineStyles

CssToInlineStlyes looks straight forward.

Last updated 2 years ago.
0

+1 on inline HTML.

In case you want your templates outside of laravel, you can try mandril API/SMTP to send email using templates hosted on mandril.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

endder endder Joined 19 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.