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
HirenHiren 

Questions about email services

1. Is there a way to check how many more emails that can be sent at a give time? Or Total number of emails sent today? I am looking for a way to prevent from error being thrown so that I can send an email to a specific email address (admin) that today's email limit has been reached.

2. How to capture if the email is sent to an invalid (non existing) email address?

 

 

Thanks in advance,

Hiren

AmitSahuAmitSahu

For 

 

1 .You can use System.Limits to check if you have reached the limits.

2. There is no direct way to see if the email addredd was invalid. I think.

HirenHiren

There is no method in that namespace that can give me how many more emails can I send it a day.

Other discussion boards says that the number getLimitEmailInvocations() - getEmailInvocations() does not give you the exact number. Unless if you know otherwise. Any other suggestions?