2022.2

Table Of Contents
Todynamicallyselectasectionforoutput,useaControlScript;see"ControlScripts"on
page838.
WhenprintingfromtheDesigner,thecurrentlyopenEmailsectionwillbeoutputted.
l
Aplain-textversionoftheHTMLisaddedtoeachemailifthisoptionischeckedintheEmailsec-
tion'sproperties(see"Emailsectionproperties"onpage931).Withnewtemplatesthisisalways
thecase.
l
Ifstylesheetsareusedtostyletheemail,thestylescanbeaddedeithertotheheaderofthe
emailortoinlinestylepropertiesasiflocalformattingwasapplied(thisisalsocalled"embedded
CSS").See"Emailsectionproperties"onpage931.
l
PDFattachmentscanbecompressedtomakethefilessmaller;see"CompressingPDFattach-
ments"onpage479.
Generating Email output from Connect Designer
TogenerateEmailoutputfromtheDesigner:
1. OpenatemplatewithanEmailcontext.
2. Loadadatafileordatabasecompatiblewiththistemplate,oropenadatamappingconfiguration.
See"Loadingdata"onpage710.
Ifyouhaveanopendatamappingconfigurationandopenanotherdatafile,thecurrentdatamap-
pingconfigurationwilltrytoretrievedatafromthefileordatabaseusingitsownDataModeland
extractionlogic.
Note: Whengeneratingoutputwithjustanopendatamappingconfiguration,thetemplate
ismergedwiththecompletesampledatafilethatispartofthedatamappingconfiguration.
TheoutputisnotlimitedtothenumberofrecordsshownintheDataModelpane(whichis
oneofthesettingsintheDataMapper).
3. OntheFilemenu,clickSend EmailorSend Test Email.Inthedialogthatappearsyoucan,
amongotherthings,attachthePrintcontextortheWebcontexttotheemail.See"Send(Test)
Email"onpage935foradescriptionofalltheoptions.Finally,clickOK.
Note: Whenyousendatestemail,theEmailToScriptwillnotbeused;instead,theemail
willbesenttotheaddressthatyouspecifyintheSendTestEmaildialog.IfyouhaveaLit-
musaccount,youcanenteryourLitmustestaddress.Tomakethetestaddressappearby
default,youcansetthedefaulttestaddressintheEmailPreferences:selectWindow >
Preferences,clickthearrownexttoEmail,clickGeneralandtypethetestaddressnextto
Email Test address.
Seealso:"TestingEmailoutputfordifferentemailclients"onthenextpage.
Page 1342