Hemanth M1
Giga Sage
Giga Sage

Hi Community,

 

Sometimes we get requirement to use different "From" and "Reply To" addresses for certain notifications/emails that ServiceNow sends out. (Since you can't add logic to set different address on the SMTP Account)

 

This article shows how to do this, Including emails sent by flow designer's "Send Email" action.

 

1)Native Notifications:

 

Open any Notifications >Open in advanced view> go to What it will contain section and Add "From" and "Reply To" email address as below

 

Format: DisplayName<Valid Email Address> , ex: SN-Test<hemanth@gmail.com>

 

Make sure you set valid email address where domain is whitelisted in your org.

 

1)From: This show as a From email address in your inbox (Refer below screenshots)

HemanthM1_3-1716265990022.png

 

 

2)Reply To: This woul be your reply to email when you would like to reply (when you click Reply or Replay All)

 

If you keep it empty , system email address apprears a reply to email

 

HemanthM1_4-1716266093492.png

 

 

 

Results 😍:

From:

HemanthM1_0-1716265244780.png

 

 

Reply To:

 

Click on Reply or Reply All

 

HemanthM1_5-1716266139275.png

 

 

Email will be sent to below email address instead of system email address

 

HemanthM1_2-1716265796431.png       You can set different from address using email script as well

             email.setReplyTo("valid email address");
             email.setFrom("valid email address");

 

2)Flow Designer Emails/Notifications:

 

1)Write BR (before insert) as below

a)Idenfity emails triggered through flow designer

  i)look for the header source info X-ServiceNOw Source:FlowDesigner <Flow context sys_id>

  ii)if you would like to set only to specific emails, Glide sys_flow_context table with the flow context sys_id above, check the flow name and drill down with subject line as well

 

 

 b)Set user and reply field to set "From" and "Reply To" respectively

 

You can also dynamically pass the email address here or you can manage it with system property.

 

HemanthM1_1-1716267005307.png

 

HemanthM1_2-1716267124036.png

 

 

Flow: Which has sample Send email action with sample text

HemanthM1_3-1716267445227.png

 

Result 😍: This shows what you set in the Business Rule as From and Reply to address

 

HemanthM1_0-1716268366501.png

When you click reply all

 

HemanthM1_1-1716268438878.png

Reply email:

HemanthM1_2-1716268595588.png

Thank you,

Hemanth

ServiceNow MVP 2024 and ServiceNow Community Rising Star 2022 & 2023

 

My other articles :

Read .CSV formatted files in ServiceNow 

 

Automate Assessment/Survey Testing with ATF(Including Multiple Option,Attachments &Reference fields) 

 

Set up interactive filter on UI builder (for data visualization reports and List records) 

 

Set Up "Step Based Request Fulfillment" for Catalog Items 

 

Need to know about Schedules and Define them in SLAs 

 

My ServiceNow Share Projects:

Add signature and update fields to a fillable PDF document

 

Get Record URL action in the flow designer (Use it in the Send Email action) 

 

Domain Separation: Alert Developers/Users when open a configuration record (ex: Business rules) in d... 

 

Custom Generic Flow Action to Create Assessment 

Comments
Juan Ignacio Z
Tera Expert

Good afternoon, I'm having a problem. In my case, I see the email in Sent and its status is processed, but the email never arrives. Do you have any idea why?

sravanipudota
Tera Contributor

Hi @Hemanth M1 

I have tried the 'send email' action in my flow designer and tried to over ride the 'from' and 'reply-to' adress with my email 

Configured the before insert business rule as you mentioned above and still 

The email from adress is taking as the system email 

 

Hemanth M1
Giga Sage
Giga Sage

Hi @Juan Ignacio Z , Could you check your exchange team,  the email address your using may in the block list or they may need to check SPF configs.

 

 

Hemanth M1
Giga Sage
Giga Sage

Hi @sravanipudota ,

 

Have you checked the header before setting up the BR??

 

 

Version history
Last update:
‎05-21-2024 10:01 AM
Updated by:
Contributors