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
AbAb 

workaround for sending emails from apex class

Hello,

I have below limit reaching as we send many emails from apex
SINGLE_EMAIL_LIMIT_EXCEEDED
We are obliged to send email from apex as the logic is comlex. is there any workaround for the soltion.
Can we stock email somewhere and send email later
thank you for feedback
 
Best Answer chosen by Ab
VinayVinay (Salesforce Developers) 
Hi Sandrine,

The limit is set for 5000 email recipients per day per org and this would be reset to 0 after 24hrs.

Check below references which has more details on how to avoid this error.

https://help.salesforce.com/articleView?id=000331939&type=1&mode=1
https://help.salesforce.com/articleView?id=000323568&type=1&mode=1
https://patlatus.wordpress.com/2016/07/07/how-can-be-avoided-error-single_email_limit_exceeded-email-limit-exceeded-if-need-to-send-email-to-one-single-user/
https://www.jitendrazaa.com/blog/salesforce/resolve-24-hour-apex-email-limit-error-in-salesforce/

Thanks,