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 

more than one email id set in replyto

Hi,

I am using Messaging.SingleEmailMessage to send mail. I want to set more than one mail id in setReplyTo. Is it possible????
Currently setReplyTo takes string means I can set only one email id.

Thanks in advance for your help.
Amit Chaudhary 8Amit Chaudhary 8
You can set only one email id setReplyTo. Please try below method to add multiple email id

mail.setToAddresses(toAddresses);
mail.setCcAddresses(ccAddresses);

Please let us know if this will help you.
 
Kunal GhoshKunal Ghosh
My requirement is to add more than one mail id in replyTo...not in to or cc address..