Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How can we send a email from servicenow using MS Graph Api .

NeethuB
Tera Contributor

Actually we want to change the domain of the outbound  email from @Service-Now.com to @XYZ.com  . As per company policy we can't use smtp they want us to use Microsoft Graph API. There are lot of doc for receiving the email to our system. But can  you help us to configure the outbound email  using MS Graph API.

4 REPLIES 4

abbasshaik4
Tera Sage

Hello @NeethuB,

Please refer to the link below:
https://www.youtube.com/watch?v=wspwRL564C4&t=35

 

If this is helpful, please click the thumbs-up and accept this solution as the correct answer, referring to it in the future. It will be helpful to them.

 

Thanks & Regards,

Abbas Shaik

Its showing only receieve type i want to send using MS Grapg API

@NeethuB Were you able to figure out the solution for this. I am having similar requirement

to send using MS Graph API

Tanushree Maiti
Giga Sage

Hi @NeethuB 

 

Steps to Configure the "From" Address in ServiceNow
  1. Configure System Properties:
    • Navigate to System Properties > Email.
    • Find the property named Email address to use in the From: of outgoing emails (glide.email.user) and set its value to an email address in your desired domain, e.g., abc@XYZ.com. This sets the default system-wide outbound address.
  2. Update Email Notification Settings

    Next, ensure that your email notifications use the configured email address.

    1. Navigate to: System Notification > Email > Notifications.
    2. Open each notification that you want to ensure sends emails from the support address.
    3. In each notification:
      • From: Ensure that the "From" email address is set to ${email.from}. This ensures it uses the address configured in the email properties.
      • Override Address (optional): If you want to override the address for specific notifications, you can set a specific address here, but typically it’s best to use ${email.from} to ensure consistency.
  3. Configure SMTP Sender

    Make sure that the SMTP sender is properly configured to use the support email address.

    1. Navigate to: System Properties > Email Configuration.
    2. SMTP Sender Email Address:
      • Ensure that the SMTP sender address is set to support@examplecompanyname.com.
      • This might be under properties like glide.smtp.sender.email.
  4. Use Email Scripts for Dynamic Changes (Advanced):
    • If the "From" address needs to change dynamically based on the record's content (e.g., incident assigned to a specific group), you can use a mail script.
    • The script would use email.setFrom("Name <abc@xyz.com>") to set the sender address programmatically.

 

Ref: https://www.servicenow.com/community/csm-forum/outbound-mail-configuration/m-p/3002265#:~:text=set%2....

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: