You need to sign in to do that
Don't have an account?
Ted Tk
Apex Single Mail Message Issue
Hi,
I have a code, where when a status is changed mail will be triggered.
Below is the snippet:
mail.setReplyTo('abc@abc.com');
mail.setSenderDisplayName('Test Sender Name');
When I receive the mail, it shows in display name as my name in the to list but when I click reply it is showing "abc@abc.com". I am confused. Can you please help me out?
I have a code, where when a status is changed mail will be triggered.
Below is the snippet:
mail.setReplyTo('abc@abc.com');
mail.setSenderDisplayName('Test Sender Name');
When I receive the mail, it shows in display name as my name in the to list but when I click reply it is showing "abc@abc.com". I am confused. Can you please help me out?
As you set the reply mail id to ''abc@abc.com" and display name as "Test Sender Name" it means that the email was triggered from the salesforce Org with the sender name as "Test Sender Name" and his email is "abc@abc.com". So you are recieving email with the name as "Test Sender Name" and when you click on reply in outlookmail it is displaying as "abc@abc.com" .
Regards,
Sai Krishna Tavva.
It is not taking display name as "Test Sender Name" instead it is taking display name as "Ted Tk".