You need to sign in to do that
Don't have an account?

how to set "to address" display name in email?
Hi,
I hope you all are doing well.Here i have one requirement.I have to set displayname for to address in email. can anyone help me in this problem.Below is the example that i have given:-
in to address it si displayed as :- "minkesh.patel@gmail.com" <Minkesh.patel@gmail.com>
I want to show like :- "Minkesh Patel" <Minkesh.patel@gmail.com>
Thanks,
Minkesh Patel
Hi Minkesh,
You can use the setSenderDisplayName method of the SingleEmailMessage to set the senders display name in the outgoing email.
SingleEmailMessage.setSenderDisplayName('Sankalp Jhingran');
You can also change your personal email settings by going to Personal Setup > My Email Settings and setting Email Name field, it will use this name for the outgoing emails from the corresponding logged in user.
Hope that helps!
Regards,
Sankalp
forcesecrets.blogspot.com