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
Preya VaishnaviPreya Vaishnavi 

Retrieve the email address of the recepients- messaging.sendemail

Hi all,

 

I need to retrieve the email addresss of the recepients of the mails that are sent through the targetobjectid (contact or user's email) by using messaging.sendemail method... Is that possible?I am using messaging.singleemailmessage and the target objectid to configure the recepient's email address.Any pointers could help me.. Thanks in advance!!!!