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?
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?
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.
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?