How send email notifications from different email addresses with different display name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2015 03:36 AM
Hi Developers,
As per one requirement I need to configure different 'From' email address for one of the notification so that mail will be delivered to users with different email address other than email address of outbound email account of SN Instance. I achieved this by filling different email address in 'From' field of particular email notification. Now emails appearing to be coming from email address that i configured in 'From' field. But still display name is same as 'Email user label' value of outbound email account.
For example,
header of initial Outbound email is looking like this.
SERVICENOW Prod <servicenowprod@xyz.com>
When I configured different email address say 'Testservicenowprod@xyz.com' in 'From' field, mails started coming as
SERVICENOW Prod <Testservicenowprod@xyz.com>
Now display name 'SERVICENOW Prod' is from the outbound SMTP account configured. I want to change this so that outbound email will look like
SERVICENOW Test <Testservicenowprod@xyz.com>
Please help me to resolve this.
Thanks in advance....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2015 09:39 PM
Please close the question by marking the response/responses as helpful or correct.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2015 08:35 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 06:24 PM
Not sure if you got the answer but I had similar requirement and figured out a way. Thought would share with you!
You can do it 2 ways
1) In the notification, you can use the below format in the from field
TEST NAME <ab@gmail.com>
2) If you want to use mail script, use the format below.
email.setFrom("TEST NAME <ab@gmail.com>");
Note: if you are using mail script, the From should be blank in notification otherwise it will not work as From field in notification take precedence over the email script value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2019 08:31 AM
Great summary, thanks