How to set Importance of email notification using email script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 09:40 AM
I am using same notification in different scenarios. In one scenario, I need to send notification marking importance as High. I tried below syntax and few other but did not work.
email.setHeader("Importance", "high");

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 09:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 11:28 AM
Thank you for the quick response, Elijah. I understood the above approach works.
I would like to use same notification and set Importance in Email script. Do you know the syntax I can use to achieve that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 11:32 AM
I'm not sure that you can do that from there. I also wasn't able to find anything online that said otherwise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2021 01:13 PM
I'm using the script proposed in the solution to this question to send emails: Forwarding the email to another instance
To that script, I added the line below to mark the send as high importance:
mail.importance = "high";