How to send an email from ServiceNow?

dev115415
Tera Expert

Hello I want to send an email to some person based on some logic of my app. I would like to do this from ServiceNow-> Script Include. How to do this?

OlaN
Tera Sage

Hi,

One way to do this is to have the script include generate an event, and register an email notification that is sent when the event occurs.

Have a look at the Docs to get an example on how to work with events.

 

Hello can I put the sender of email to be an arbitrary person(not the same as servicenow user).

In the notification you create, you can specify the sender of the email, if needed.

change-send-email-from.png

thanks for your help. but still I am not receiving the mail. Interestingly I see the mails in Outbox in ServiceNow but they are not sent.

Could you please tell will I be able to send from a gmail like abc@gmail.com to xyz@gmail.com?