Hi guys, Im using INK by ZURB to send out a responsive email template. BUT when laravel sends out my welcome.blade.php to an email. the css does not work. At first I thought I was doing something wrong with INK but i think laravel is changing or doing something.
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.
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.
+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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community