Contents Now Platform Capabilities Previous Topic Next Topic JavaScript in emails Subscribe Log in to subscribe to topics and get notified when content changes. ... SAVE AS PDF Selected Topic Topic & Subtopics All Topics in Contents Share JavaScript in emails Create mail scripts in System Notifications > Email > Notification Email Script, and refer to them by using ${mail_script:script name} in the script field. To print text into the body of the message, use the template.print("a string") function. Figure 1. JavaScript in templates The event.parm1 and event.parm2 parameters that come from the originating event can also be used. Related ReferenceMail script APIExample scripting for email notificationsUseful attachment scripts On this page Send Feedback Previous Topic Next Topic
JavaScript in emails Create mail scripts in System Notifications > Email > Notification Email Script, and refer to them by using ${mail_script:script name} in the script field. To print text into the body of the message, use the template.print("a string") function. Figure 1. JavaScript in templates The event.parm1 and event.parm2 parameters that come from the originating event can also be used. Related ReferenceMail script APIExample scripting for email notificationsUseful attachment scripts
JavaScript in emails Create mail scripts in System Notifications > Email > Notification Email Script, and refer to them by using ${mail_script:script name} in the script field. To print text into the body of the message, use the template.print("a string") function. Figure 1. JavaScript in templates The event.parm1 and event.parm2 parameters that come from the originating event can also be used. Related ReferenceMail script APIExample scripting for email notificationsUseful attachment scripts