Question

I was using mandrill for sending mails . Using mandrill template functionality, i have properly coded on server side to send the mails. I am receiving the mails, but CSS is not properly rendered. In my code i have set inline_CSS = 'true'. Also, in Mandrill in settings-> sending options i have set 'Inline CSS Styles In HTML Emails' = true. But still when i design a template its not rendered properly in 'preview and test' and also if send via API.

In Addition to this, i need to know how to add CSS file to your template dir. OR how to give the link to this CSS file. Because doing the settings is ok, but there should be some place where i need to put that file or pass it some way.

Was it helpful?

Solution

Mail clients cannot load style content from an externally-linked stylesheet. There is no local file path/system, so all style must be included within the template itself, between <style> tags.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top