HTML Mail ...
Dave Jacoby
Purdue Perl Mongers
“Email Hates The Living”
-@rjbs
Why Would
You Do
This?
Spammers
Newsletters
CAN-SPAM
Not Going To Show Code
Fallback to Text Mail
Try Email::MIME::Kit
Problems:
HTML and CSS
Images
Inconsistent
Rendering
Engines
Gmail says “no”
to much of CSS
Gmail says “no”
to <style>
Therefore,
Inline CSS
Most formatting tags
are inconsistent
or disallowed
Therefore,
Tables
Images
Images make
HTTP requests
Embedded Images?
Gmail says “no”
to Embedded Images
Attached Images?
Gmail says “no”
to Attached Images
So, Web Images
Also, no PNG
Also, no SVG
Also, no Javascript
Tables for Page Layout
Inline CSS
No CSS3
JPG or GIF
Email Hates the Living: https://www.youtube.com/watch?
v=4s9IjkMAmns
CSS Inliner: http://templates.mailchimp.com/resources/inline-
css/
Allowable CSS: https://www.campaignmonitor.com/css/
ALA Salted Email Template: https://github.
com/alistapart/salted/

Html Mail