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
Prince VenkatPrince Venkat 

Email through Apex


when ever we send an email it should be logged with an object activity.

How to achieve this

Thanks in advance
ANUTEJANUTEJ (Salesforce Developers) 
Hi Prince,


To access email logs, click Your Name | Setup | Monitoring | Email Log Files.

For that to work, the employee will need to have the "Modify All Data" as described here [].

Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.  

mukesh guptamukesh gupta
Hi Prince,

Requirment is not clear,  please elobrate more