function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kunal GhoshKunal Ghosh 

populate "reply to" field from the email url

Hi,
I have a requirement where I need to populate "reply to" field in the email client from url I have created. Currently this url is having TO, CC, BCC, Subject, email body field. 

My question is can I add the reply to field in the same url or I need to move my code to Apex to set all the values

Thanks in advance for your help.

Regards,
Kunal
 
Best Answer chosen by Kunal Ghosh
Kunal GhoshKunal Ghosh
I found the solution :
Using this Messaging.SingleEmailMessage mail = 
      new Messaging.SingleEmailMessage();
mail.setReplyTo('any@any.com');
we can set replyto here
 

All Answers

bob_buzzardbob_buzzard
According to the RFC : http://tools.ietf.org/html/rfc6068 - reply to isn't supported, but I've read threads around the internet that say some clients will provide support, so its best to suck it and see.  Most things I read recommend using 'reply-to' as the URL parameter, but this again will be specific to the email client.
Kunal GhoshKunal Ghosh
I found the solution :
Using this Messaging.SingleEmailMessage mail = 
      new Messaging.SingleEmailMessage();
mail.setReplyTo('any@any.com');
we can set replyto here
 
This was selected as the best answer