JavaScript in emails
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- Notifications
Create mail scripts in ${mail_script:script name}
in the
script field.
To print text into the body of the message, use the template.print("a string") function.

The event.parm1 and event.parm2 parameters that come from the originating event can also be used.
For additional information on creating mail scripts, see Notification Email Scripts on the Developer Site.
Related Content
- Mail script variables
Certain variables are available when processing mail_script scripts.
- Example scripting for email notifications
Examples of scripting for email notifications.
- Useful attachment scripts
This is a searchable version of the Useful Attachment Scripts.