2022.2

Table Of Contents
1. OpentheCreateEmailContenttaskandselecttheEmailInfotab;thenunchecktheSendemails
tosender(testmode)option.
2. Replacethetestdatawithrealdata:
a. OpentheSample Data.xmlfile.YouwillfinditintheConfigurations\Datafolder.
b. Replacetheemailaddressesinthisfilebyrealemailaddressesthatyouhaveaccessto.
c. CopythemodifiedsampledatafilefromtheConfigurations\DatafoldertotheWorkspace\In
folder.
Theemailsshouldnowbesenttotheemailaddressesthatyouenteredinthesampledatafile.
Projectdetails
The email template
Theemail'sdesignisintheEM_BASIC Email Messagetemplate.ItcontainsoneEmail section(see
"Emailtemplates"onpage480).
Stylingisdoneviastyle sheets(see"Localformattingversusstylesheets"onpage671).Thestyle
rulesareinthecontext_htmlemails_styles.cssfile.NotehowtheyuseHTMLtags,IDsandclassesto
selectelements.(Seealso:"SelectorsinOLConnect"onpage825.)
The@mediarulesmaketheemailresponsive(seealso:"DesigninganEmailtemplate"onpage472).
Note: EventhoughemailclientsdonotreadCSSfiles,CSSfilescanbeusedwiththeEmailcon-
textintheDesigner.See"UsingCSSfileswithHTMLemail"onpage474.
Twoattachmentsareaddedtotheemail,indifferentways.
l
TheReturnandRefundPolicyPDFisstoredinthetemplate(intheImagesfolder).Right-click
theEmailsectionandselectAttachmentstoseehowthisisattachedtotheemail.
l
Thedeliverynoteisadynamicattachment,basedonadatafield.Itisattachedtotheemailby
theAttachmentscript.Tolearnhowtocreatedynamicattachments,see"Dynamic
attachments:creatingfilenamesbasedondatafields"onpage490.
AllscriptsarelistedontheScriptspane.Youcandouble-clicktoopenthem.
Tip: HoveroverthenameofascriptintheScriptspanetohighlightpartsofthetemplatethatare
affectedbythescript.
l
Somedataareaddedtotheemailviasimpletext scripts.Suchscriptssearchthetemplatein
ordertoreplaceacertaintextthatissurroundedby@(e.g.@First@)bythecorrectdata.(See:
"Variabledataintext:scriptsandplaceholders"onpage726.)
Page 137