Integer email_left = Limits.getEmailInvocations();
system.Debug('Used Email: '+email_left);
Integer emailLimit = Limits.getLimitEmailInvocations();
system.Debug('Email Limit: '+emailLimit);
I got the following code but the email_left
always ouput 0. Even there is no Gorvernor's Limit on email. And emailLimit
always output 10.
I want to know how many email used, or any functions to know the remaining email. So that i can create a condition:
if(remaining != 0){
//Send Email
}else{
//Do Something
}