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
jaxdmasterjaxdmaster 

Batch to send email

Hi All,

 

I've several batch in a single batch job. And whenever an error occurs in any batch, salesforce sends an error email to admin. But that email doesnot have enough info about error, so I want to send email using apex code. I will write email sending code catch block in execute method of batch apex. Pls tell me so far I am ok? Now my question is what are the limitations on email in apex. I just want to send email to internal users only. Is there any limit on that?

 

 

Thanks