How to change from address of Emails sent through Scheduled Emails of Reports?

Sahil15
Tera Contributor

Hi

I am unable to change the Email "From" address of mails sent through "Scheduled Emails of Reports". It is always taking from address as "IT Service Desk". I want to change it based on type of reports it is sending. Is it possible? As I can see only HTML content (as part of Introductory message) can be added in Scheduled Job for Reports.

 

5 REPLIES 5

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to update the value in two places:

 

1.System Properties-->glide.email.username

 

 

 

find_real_file.png

 

2. System MailBoxes-->Email Accounts.

 

 

 

 

 

find_real_file.png

 

 

 

This will update the display name of the email.

 

Regards,

Sachin

Hi Sachin,

 

Thanks for your response. But by this, It will change default "from" value for every scheduled emails.But I want from address to be dynamic. Suppose report is on Problem tickets then emails from address should be "Problem Management".Similarly if it is on incidents, emails from address should be "Incident Management". 

 

 

AbhishekGardade
Giga Sage

Hello Sowl,

You can call mailscript from Scheduled Emails of Reports. I have implemented this on my project.

Thanks,

Abhishek

Thank you,
Abhishek Gardade

Hello Sowl,

Check out my thread:

https://community.servicenow.com/community?id=community_question&sys_id=9c0e8054db473708d58ea345ca96...


1. Create mail scripts in System Notifications -> Email -> Notification Email Script

2. Add this code :  email.setFrom("Your label <xxxxx@service-now.com>");

3. Call in Introductory message field on scheduled reports by using

                  ${mail_script:script name}.


Please mark as Correct Answer/Helpful, if applicable.
Thanks! 
Abhishek Gardade

Thank you,
Abhishek Gardade