You need to sign in to do that
Don't have an account?
Keaton Klein
MassEmailMessage error
I have a trigger which uses mass email message to send to a list of leads. It works great when leadids is populated with 5 or 6 IDs but if it is populatd with 7 or more i get the error message stating MASS_MAIL_LIMIT_EXCEEDED, Failed to send email: []
It is my understanding that we can use mass email to send to a list of up to 250 leads/contacts. Any thoughts on why i am being limited to 6? Below is a snippet from my code.
Also, when the emails are sent it shows up under Activity History but it does not show up under HTML Email Status so i cannot see if the email was opened by the recipient.
It is my understanding that we can use mass email to send to a list of up to 250 leads/contacts. Any thoughts on why i am being limited to 6? Below is a snippet from my code.
Also, when the emails are sent it shows up under Activity History but it does not show up under HTML Email Status so i cannot see if the email was opened by the recipient.
if (LeadIds != null && !LeadIds.isEmpty()) { Messaging.MassEmailMessage mail = new Messaging.MassEmailMessage(); string etidasstring = a.ezwf__Email_Template_ID__c; mail.setSenderDisplayName(UserInfo.getName()); mail.setReplyTo(UserInfo.getUserEmail()); mail.setTargetObjectIds(LeadIds); mail.setTemplateId(etidasstring); mail.setSaveAsActivity(true); Messaging.sendEmail(new Messaging.MassEmailMessage[] {mail}); }
you create a list for email messages.Create your emails, one by one (maybe in a loop) and add them to that list. Finally you do a Messaging.sendEmail(yourList)
Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.
All Answers
you create a list for email messages.Create your emails, one by one (maybe in a loop) and add them to that list. Finally you do a Messaging.sendEmail(yourList)
Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.