function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RoyalRoyal 

Messaging.sendEmail(singleobject) or Messaging.sendEmail(listobject) then why MessEmailMessage class ?

HI,

sendEmail(); can alow single object and list of object so that means it can process single mail or more then one mail, then what is the specification os the MassEmailMeaage class and what is the limitation of the SingleEmailMassge class ?

can any one pls give the clarification.....

thanks in advance....
 
Amit Chaudhary 8Amit Chaudhary 8
Please check below post. I hope that will help you.
http://amitsalesforce.blogspot.com/2015/11/singleemailmessage-vs-massemailmessage.html

SingleEmailMessage:
Single emails are like regular individual emails that may go to one or more addresses (to/cc/bcc), but each of these emails has the same body
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_single.htm

MassEmailMessage:
Mass emails typically go to a large number of addresses (currently capped to 250 per email), with personalized message bodies.
https://developer.salesforce.com/page/An_Introduction_To_Email_Services_on_Force.com