2022.2

Table Of Contents
field.
ThespecifiedsubjectandaddresseswillbevisiblewhenviewingtheemailintheworkspaceinPreview
mode.
TheToaddressmustalwaysbevariable.Thisfieldisnotusedwhenyousendatestemail(see"Gen-
eratingEmailoutput"onpage876).
Note: Usingavariableemailaddressrequiresyoutoloaddatafirst;see"Loadingdata"on
page299.
TheEmailScriptWizard
Inadditiontothedraganddropmethod,youcanusetheEmailScriptWizardtoadddatatoanemail
headerfield.Itletsyouchooseoneormoredatafieldsandenteraprefixand/orsuffix(perdatafield).
TherearetwowaystoopentheEmailScriptWizard:
l
ViatheEmail Fields.OpentheemailsectionandexpandtheEmailFieldsatthetopbyclicking
Email Fields.Clickthewordbeforetheemailfieldthatyouwanttoset.Iftherealreadyisascript
forthatfield,thatscriptwillbeopened.Otherwise,anewscriptwillbecreatedandopened.
l
ViatheScriptspane.ClicktheblacktriangleontheNewbutton andselecttherespective
emailscript.AnewscriptwillbeaddedtotheScriptspane.Double-clickthenewscripttoopenit.
See"Scriptwizards"onpage478foranexplanationoftheoptionsinthescriptwizard.
Thedefaultscriptaddsthecontentoftheselecteddatafieldtotheheaderfield.
Ifyouwanttowriteamorecomplexscript,clicktheExpandbutton.Theresultofthescriptshouldbea
valid,fully-formedemailaddress.
ThelanguageinwhichthescripthastobewrittenisJavaScript.Formoreinformationonwritingscripts,
see"Writingyourownscripts"onpage368.
Otherheaderfields
Atsomepointyoumayneedtodefineaheaderfieldthatisn'tavailableinthePreferencesorinthe
EmailFields.ThiscanbedoneinaControlScript.Forafewexamplesofsuchscripts,see"Addingcus-
tomESPhandlinginstructions"onpage881.TogetstartedwithControlScripts,referto"Control
Scripts"onpage398.
EmailSMTPsettings
SimpleMailTransferProtocol(SMTP)isthestandardprotocolforsendingemailsacrosstheInternet.
DefaultSMTPsettingscanbespecifiedinthePreferencesdialog:selectWindow > Preferences,
expandtheEmailpreferencesandclickSMTP.
Page 162