Is there a way I can send emails from multiple addresses when notifications are going out from ServiceNow?

Mussie
ServiceNow Employee
ServiceNow Employee

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

1 ACCEPTED SOLUTION

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


View solution in original post

5 REPLIES 5

ark6
Mega Guru

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


tlindof
Kilo Expert

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.


Mussie
ServiceNow Employee
ServiceNow Employee

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


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