my email limit is exceeded after sending 10-12 emails..what could be the problem..as i have seen the limit is 1000 emails/day.i am not able to find out what could be the problem..Can some give me some suggestions. As i also know we can send 10 emails in a single transaction.I am sending emails in a batch class.
I am calling this batch class on button click and filling emailList with emailsId's.
String query='Select id from Lead';//No use of this query
Batch_send_emails bse=new Batch_send_emails();
bse.query=query;
bse.resendEmails=emailList;
database.executebatch(bse);
**Batch Class**
if(!resendEmails.isEmpty())
{
for(String s:resendEmails)
{
emailsLeads.add(s);
}
}
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setToAddresses(emailsLeads);
// mail.setCcAddresses(ccAddresses);
String subject='GoToMeeting Invitation Details for '+subject;
String body='test';
mail.setHtmlBody(body);
mail.setSubject(subject);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
}