- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2017 07:37 PM
Hi Guys,
Can someone please confirm if there is a way that I can send emails from multiple addresses when notifications are going out from ServiceNow?
I have got a requirement where several different Request Management system (such as Finance, HR) want to use different email addresses as having one email doesn't meet their requirements.
Regards,
Mussie
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 03:49 PM
Hi Mussie,
You can do like this:
if(current.requester.department=='Finance')
{
email.setFrom("Finance Service Desk <example@finance.com>");
}
else if(current.requester.department=='exm')
{
//your other conditions
}
Regards,
Rahul Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2017 08:22 PM
Hi Mussie,
I feel setFrom(Someone@example.com) in the notification script can solve your purpose
You can do something like
if(current.requester.department=='Finance')
{
email.setFrom(example@finance.com);
}
else if(current.requester.department=='exm')
{
//your other conditions
}
Please hit like or mark helpful if found appropriate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2017 08:23 PM
In the notification you can use
email.setFrom
email.setReplyTo
I have them in a Mail script this allow me to choose what From and reply to for the particular notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 03:11 PM
Thanks guys for the responses, both work but the one suggested by Arka is much more flexible as it involves scripting. The only issue I have is the display name of the address. The email address is changed but the display name still remains the same, is this something I can configure or change? I think not.
Mussie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 03:49 PM
Hi Mussie,
You can do like this:
if(current.requester.department=='Finance')
{
email.setFrom("Finance Service Desk <example@finance.com>");
}
else if(current.requester.department=='exm')
{
//your other conditions
}
Regards,
Rahul Jain