2022.2

Table Of Contents
omitted).
o
Foraremotefile,youcanusethehttpprotocole.g.http://www.mys-
ite.com/somefolder/attachments/INV2019-246.pdfor
http://localhost:8080/pod/v1/deliverynotes/{8FCEC8BC-72E8-486B-A206-
516BF10E21F6}.
Note: Forattachmentnames,itisrecommendedtouseonlyUS-ASCIIcharacters.Other
charactersmaynotbesupportedbyallemailserversandclients.
Note: CertaincharactersareinvalidinaURL(forexample,'$','%',and'&')andmust
bepercent-encoded.Thesameappliestoafilepath,sincethatactuallyisaURLthat
startswiththefileprotocol.
NotethatevenaspacecharacterisinvalidinaURL.SpacesinaURLaresupported
forbackwardcompatibility,butitisrecommendedtopercent-encodeaspacechar-
acteras%20.
5. Theattachment'snameintheemailwillbethepartofthepaththatcomesafterthelast'/'.When
therearenoforwardslashesinthepath,thefullpathisused.
Youmaywanttouseacustomattachmentname.Tolearnhowtodothat,see"Renamingattach-
ments"below.
6. ClickOKorApplytosaveyourchanges.
NotethatanAttachmentsscriptcreatesone single attachment.Toaddmoreattachments,youcould
eitheraddAttachmentsscripts,orclicktheExpandbuttonandeditthescript.
Ifyouwanttowriteyourownemailattachmentscripts,thereisahow-tothatyoumayfindhelpful:How
toaddcustomemailattachments.
Renamingattachments
SectionsthatareattachedtoanemailcanonlyberenamedviaaControlScript;see"Parts:splitting
andrenamingemailattachments"onpage402.
Renaming dynamic attachments
Dynamicattachmentscanberenamedviathescriptthatattachesthemtotheemail.Double-clickthe
scripttoopenitandclicktheExpandbutton.
Dynamicattachmentscriptsadda<link>elementtothe<head>ofanEmailsection.Thetitleattribute
ofthatelementspecifiestheattachmentnamethatwillshowupintheemail.
Takealookatthelastlineofthescript:
results.append(query("<linkrel=related>").attr("title", result.split('/').pop()).attr("href",result));
Page 169