I have a requirement to send emails to external users using apex code , but the email limit is 5000 per day using single email messaging class.
I am using a batch job to send email , but before I get the number of records to whom I need to send email I want to know how much is the email limit left for today. Is there way to query the limit in apex code to check how much email limit is left for a day?