2022.2

Table Of Contents
TheresultofthescriptwillbevisibleintheSubjectfieldinPreviewmode:clickthePreviewtabatthe
bottomoftheworkspace.
Note: Bydefault,theSubjectscripttargetsoneemailsectionspecifically.Youcanseethiswhen
youdouble-clickthescriptontheScriptspane.TheselectoroftheSubjectscriptcontainsthe
nameofaparticularemailsection,forexample:html.HTML_EMAIL[section="Content"](inthis
case,Contentisthenameoftheemailsection).Ifyouremovethe[section=...]partfromthe
selector,thescriptwillworkforallemailsections.
Subjectscriptsmadewithversionsofthesoftwarepriortoversion1.7arenotspecifictoone
emailsection.
Writing a custom Subject script
Thedefaultscriptreplacesall@field@placeholdersinthesubjectlinewithfieldvalues.Thisscriptcan
bemodified,forexampletocreateasubjectthatdependsonthevalueofadatafield.OpentheScript
Wizard(see"TheEmailScriptWizard"onpage484),clicktheExpandbuttonandmodifythescript.
Ifyoudon'tknowhowtowriteascript,see"Writingyourownscripts"onpage808first.
Note: ASubjectscriptcreatedbyclickingSubjectintheEmailFieldsalwaystargetsoneemail
sectionspecifically,forexample:html[section="Content"](inthiscase,Contentisthenameof
theemailsection).Removethe[section=...]partfromtheselectorofthescripttomakethe
scriptworkforallemailsections.
Recipients:To,CCandBCC
TospecifyrecipientsforEmailoutput,youcansimplydrag and dropadatafieldthatcontainsanemail
addressintotheTofieldatthetopoftheworkspace.Anewscript,namedTo,willbeaddedtothe
Scriptspane.
Notethatyoucanaddonlyonedatafieldtotheemailfieldthisway.Whenyoudraganotherdatafield
intotheemailfieldtheexistingscriptwillbereplaced.
Alternatively,youcouldusetheScriptWizardtocreatethescripts;see"TheEmailScriptWizard"on
page484.
EmailaddressescanbeaddedtotheCcandBccfieldsinthesamemanner,butitisalsopossibleto
typeanemailaddressdirectlyintheCcorBccfield(aslongasnoscriptispresentforthatfield).Email
addressesintheBcc('blindcarboncopy')fieldwillnotbevisibletoanyotherrecipientoftheemail.
Foreachrecipient,anameandemailaddresscanbespecified.Inthatcasetheemailaddressitself
mustbeenclosedin<>,forexample:Tester<tester@example.com>.Thenamecanbeenclosedin
quotes:"Tester"<tester@example.com>.Iftherecipient'snamehasacomma,itshouldalwaysbe
enclosedinquotes:"Tester,QA"<tester@example.com>.
Page 486