+ Start a Discussion
SandrineSandrine 

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 Sandrine
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,