Change email notification sender from 'IT Service Desk' to name from field on form

JJG
Kilo Guru

Hello,

I am using an email script to set an email address as the 'From' & 'Reply to" for an email notification. That works fine, however, it still has the "It Service Desk" in the name field (see pic below). Is there any way to change this? The from & reply to work great, I would just like the name to not be IT Service Desk. Thank you for any help.

find_real_file.png

email script:

(function runMailScript(current, template, event) {
email.setFrom(current.recruiter_email.toString());
email.setReplyTo(current.recruiter_email.toString());
})(current, template, email, email_action, event);

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

To do this you would just do something like:

(function runMailScript(current, template, event) {
email.setFrom("Name <" + current.recruiter_email.toString() + ">");
email.setReplyTo(current.recruiter_email.toString());
})(current, template, email, email_action, event);

So for example:

email.setFrom("JJG <jjg@gmail.com>");

So however you can get the "name" you would want to add that in to the same line.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

To do this you would just do something like:

(function runMailScript(current, template, event) {
email.setFrom("Name <" + current.recruiter_email.toString() + ">");
email.setReplyTo(current.recruiter_email.toString());
})(current, template, email, email_action, event);

So for example:

email.setFrom("JJG <jjg@gmail.com>");

So however you can get the "name" you would want to add that in to the same line.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

restevao
Giga Expert

Update this sys_property

glide.email.username



https://XXXX.service-now.com/sys_properties_list.do?sysparm_query=name%3Dglide.email.username&sysparm_view=

ArvindG
Tera Contributor

You can update the From address and Reply to Email address in required Notification record, refer screenshot for details.

ArvindG_0-1672132575047.png