How can I change the Display name in emails depending on the "form" field

victortrejo
Giga Expert

I configured a notification to send an email with the field "from" populated with a different address, when the email is sent the notification arrives with the name of the SMTP server, how can I change that display value without modify the "Email user label" in the SMTP email account

Example

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Can you try setting the from field to <Victor Trejo> victor.trejo@xxxx.xxx. I think this works. I have tried it in my previous project.

 

You can also use, if you want to do it using mail script.

email.setFrom("Display Name <emailid>");


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

7 REPLIES 7

SanjivMeher
Kilo Patron
Kilo Patron

You want to change the IT Service Desk to something else?

 

Did you try setting the From field in the notification itself?

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

victortrejo
Giga Expert

Hi @sanjivmeher yes I changed the from field, as you can see in my example, the message arrives from my email but says IT Service Desk and I need to modify that without changing the email account "Email user label" I mean that if I send an email from "victor.trejo@xxxx.xxx" the email user label has to be "Victor Trejo" instead of "IT Service Desk" is there a way to accomplish this?

 

Can you try setting the from field to <Victor Trejo> victor.trejo@xxxx.xxx. I think this works. I have tried it in my previous project.

 

You can also use, if you want to do it using mail script.

email.setFrom("Display Name <emailid>");


Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv, 

I have the similar issue, I need to change the email user label for SLA breach notification coming from HR applications only, as SLA breach notification is defined in global scope, changing from field would trigger and make changes for all.. Can you please suggest how to do this?