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
Nandhini GovindrajNandhini Govindraj 

How to write apex class for email bounce

vineet kumarvineet kumar

Hello Nandini,

Why do you want to write apex class for email bounce when you can simply configure it. check the below link.

Email Bounce (



SwethaSwetha (Salesforce Developers) 
HI Nandhini,

This link has sample code for bounced email and the related test class too.


If this information helps, please mark the answer as best. Thank you
Nandhini GovindrajNandhini Govindraj
Need to write apex class for email bounced date and reason fields has value