- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 06:41 AM
Hello,
I would like to set the "From" field in email notification so using script, I will be able to decide who will see what in the "From" field while sending an email (outbound).
Thx
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 06:50 AM
Hi
You can add the "From" field to your notification form layout (configure > form layout), if it's not already there. Then you can set it as you'd like.
For scripting, you can create a mail script and use something like:
email.setFrom("fakeemail@example.com");
or
email.setFrom("Fake IT HelpDesk <fakeIThelpdesk@example.com>");
Then, to call the mail script, you can use: ${mail_script:name_of_mail_script} in the body of the notification.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 06:50 AM
Hi
You can add the "From" field to your notification form layout (configure > form layout), if it's not already there. Then you can set it as you'd like.
For scripting, you can create a mail script and use something like:
email.setFrom("fakeemail@example.com");
or
email.setFrom("Fake IT HelpDesk <fakeIThelpdesk@example.com>");
Then, to call the mail script, you can use: ${mail_script:name_of_mail_script} in the body of the notification.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 06:53 AM
You can use email.setFrom from the mail script. Refer the below documentation for reference
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 06:54 AM
Hey Mag,
There are two ways you can do this at a notification level:
- From field in Advanced view
- Set From in Mail Script
email.setFrom();
If you wanted to change it instance wide, you would need changing or creating a new Email Account on your instance:
Please mark this answer as correct or helpful if it solved your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 03:32 AM
Hi Ethan,
How to do this in flow?