
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2011 07:57 AM
Hello,
As explained in the documentation, it is possible to change the "From" address used by a particular Email Notification from the default one:
http://wiki.service-now.com/index.php?title=Scripting_for_Email_Notifications#Overriding_Email_Fields
This works well as long as one remembers to do email.setReplyTo() in addition to email.setFrom().
However, I am trying to change the "display name" of the "from" address. I would like a different value from the one in the 'glide.email.username' system property (e.g. 'Help Desk').
Since I see no method in the documentation or when introspecting the 'email' object, I thought I could write a "on before update" Business Rule that rewrites the headers of a sys_email record before it is sent.
And I think I succeeded, because the headers in the sys_email record do change. But when I look at the mail that arrives to my personal inbox, the headers still show the default value (e.g. "Help Desk" instead of "No reply - Help Desk" which I am trying to achieve).
Can anyone offer any help / advice?
Thanks for reading,
David
Solved! Go to Solution.
- Labels:
-
Analytics and Reports

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2015 12:34 PM
Hello Harish, Saravanan,
To clarify, you have to do the following inside the "Message" field of your Email Notification or Email Template record:
<mail_script>
email.setFrom("Display Name <some.address @ company.com>");
email.setReplyTo("Display Name <some.address @ company.com>");
</mail_script>
(without the spaces around the @ character, which I added to avoid the email address to be mis-formatted by the comments system of this website)
Best regards,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2015 10:11 AM
Thanks a lot David.. It works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2023 06:48 AM
This seems to be standard if you use the advanced view.
Specify alternative outbound email addresses for notifications (servicenow.com)
Regards,
Christophe