IVR
Bamboo + Mailgun: not using CSS
Hey all,
I’m using Bamboo with Mailgun and I’m having trouble sending CSS-decorated emails. You can view my template here. For some reason, when my emails go through Mailgun, CSS, fonts and images are not getting picked up. The CSS is meant to come from another file priv/static/css/style.css, the font is declared inline and the images are also stored in priv/static.
Has anyone experienced this problem? Any ideas how I could resolve this?
Many thanks!
EDIT: I’ve tried Premailex but it didn’t help.
Most Liked
hauleth
Email styling is hard. Check if your client support features you are using.
EDIT You also need to use absolute URLs, and from what I see you try to use relative ones.
derek-zhou
When your user view the email in their email clients, they are not in your web application so you have to use absolute url, not just path, for all assets. Furthermore, an email client is not a browser and it may not support all the browser goodies and it would be dangerous otherwise.
Or you can have all the styles and fonts embedded in the email. It is harder but worries free
derek-zhou
You can embed images as well. The absolute url is a must, there is no other way. Whatever you saw under the sent_mails route is not real; they are for debug and nothing else.







