Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class not loaded

Tags:

html

css

email

I have an CSS style in an external file and the element refers to a the style using the 'class' attribute.

However, I can't seem to get the styling.

like image 909
unj2 Avatar asked Nov 21 '25 22:11

unj2


1 Answers

Email is notorious for being difficult to style in multiple clients.

For this reason, inline styles and tables are the norm for email templates.

As for loading an external asset, a lot of email clients won't do this for privacy reasons, to prevent the sender from determining if the email has been read by attaching a unique identifier to the URL.

Example

http://example.com/assets/style.css?nonce=ac77f909

The system then checks the nonce against who it maps to, and can tell who is receiving/reading the email.

This is very useful for spammers.

like image 70
alex Avatar answered Nov 23 '25 12:11

alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!