- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 01:10 AM
Hi everybody,
is there a possibility to use a mail script in a plain text only mail template?
We need to send an email without html content but only text, but this mail is not static so I need to use a mail script to get different content for every mail. That mail is triggered by an event from a workflow and the content is in the parm2 variable of the event.
Best regards,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 01:46 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 01:30 AM
Hi,
Get content in one variable and add this below script.Add the below script in mail script
var text='</div>'+ add your variable here+'</div>';
template.print(text);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 01:35 AM
I may have not been precisely enough.
I want to send a plain text mail without html tags.
I already tried using a mail script in plain text mail message text. Result -> I just get the ${mail_script:XXX} text in my mail instead of the content, so ${mail_script... doenst seem to be recognized as a mail script but as a text.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 01:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 01:48 AM
Ok let me double check it. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 02:05 AM
Retested it and it worked, I may had a typo or preview notification doenst work correctly if using a mail_script in a plain text mail template.
Thanks Harshvardhan