- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
So instead of this script:
<mail_script>

template.print("I'm an instant star. Just add water and stir. — Bowie"); 

</mail_script>
You'll get this script: <div><mail_script></div><div>template.print("I'm an instant star. Just add water and stir. — Bowie");</div><div></mail_script></div>
When the system formats the text in the templates, <div> tags like to invade to indicate separate lines. The <div> tags also appear in your script if it extends more than one line. These tags invalidate the script, which prevent it from running. However, the script will work if you move the contents of the script to the Notification Email Scripts and use the script in the template body.
To move the email template script to the Notification Email Scripts:
- Navigate to System Policy > Notification Email Scripts.
- Create and name the new script. For example, BOWIE.
- Navigate to System Policy > Email > Client Templates.
- Create or edit a template.
- In the Body field, enter ${mail_script:BOWIE.
- Click Submit.
You should now be able to view the text in your email template:
For more information, see Email client templates that use mail scripts do not work after upgrading to Eureka Patch 5 or later.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.