简体   繁体   中英

email-inline.css in Magento Transactional emails not working

I have a question regarding Magento transactional emails.
The problem is with email-inline.css:

 {{inlinecss file=“email-inline.css“}}

They just do not work.
Everything is alright when I sent emails locally but when I push the Code and send from live shop, they don't work.
I have checked everything and I have no clue what can be the problem.

Have anyone maybe the same problem and maybe a solution?

Thank you

External css file doesn't work in most email provider, because most webmail clients will block links to external stylesheets for security considerations.

You have to write the css inline, like <h1 style="color: #1c70db;">Title</h3> , that works for me.

Some css grammar may not work in some email clients, so you have to test the email as many different email clients as you can possibly get access to.

Probably the permissions for the file are not set correctly. I had similar issue.

email-inline.css

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM