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
levaleva 

Setting sender’s address when sending email

 

Hi,

 

I am sending email via Apex (Messaging.SingleEmailMessage) and need to set sender’s address to different emails based on business logic.  I am using setSenderDisplayName to change the label. Is there a way to set the actual address?

 

Thank you

Best Answer chosen by Admin (Salesforce Developers) 

All Answers

levaleva

Thanks!