2022.2

Table Of Contents
Using CSS files with HTML email
EmailclientsdonotreadCSSfilesandsomeevenremovea<style>tagwhenitispresentinthe
email'sheader.Nevertheless,CSSfilescanbeusedwiththeEmailcontextintheDesigner.
WhengeneratingoutputfromtheEmailcontext,allCSSrulesthatapplytothecontentoftheemailcan
beprocessedandaddedeithertotheheaderoftheemailortoinlinestylepropertiesasiflocalformat-
tingwasapplied,dependingontheEmailsectionproperties.See"Emailsectionproperties"on
page483.
Usingimagesinemailcampaigns:tips
Host images on a public server
IntheDesigneryoucanaddimagesasresourcetothetemplatedocument.Whenusedinemailmes-
sagestheseimagesareautomaticallyembeddedonsendingtheemail.Theseembeddedimages
appearinstantlywhenviewingthemessageinyouremailclient.
Thereis,however,adownsidetothismethod:embeddedimagescan'tbeusedtotrackemailopen
rates.Emailserviceslikemandrillapp.comembedatinytracerimageatthebottomofyourmessage.
Eachtimearecipientopenstheemailthetracerimage(akabeaconimage)isdownloadedandyet
another'open'isregistered.OnmobiledevicesthishappenswhentheuserclickstheDisplayImages
button.
So,whentrackingopenratesinyouremailcampaigns,storeyourimagesonapublicly-accessible
server(preferablyyourownserver)orareputableimagehostingservice,likephotobucket.com.Don't
forgettosettheAlternateTextforyourimagesontheAttributespane.
Do not capture your email in one big image
Moste-mailclientsdonotautomaticallydownloadimages,sodonotcaptureyouremailinonebig
image.Therecipientinitiallyseesablankmessageandprobablydeletesitrightaway.
Do not resize images in your email
Manymailclientsdonotsupportimageresizingandwillshowtheimageinitsoriginaldimensions.Res-
izetheimagesbeforeyoulinktoorembedthem.
Use background images wisely
Mostmailclientsdonotsupportbackgroundimages:averygoodreasontostayawayfromthemin
yourmainstreamemailcampaign.Thereisonesituationinwhichtheydocomeinhandy.BothiPhone
andAndroiddefaultmailhavesolidCSSsupportandcovermostofthemobilemarketspace.Youcould
usebackgroundimagestosubstituteimageswhenviewedonthesedevices.Thisisdonebyhidingthe
actualimageandshowingamobile-friendlyimageasbackgroundimageinstead.Thisisatechnique
usedinResponsiveEmailDesign.
Page 153