- August 10, 2017 at 2:00 pm #21562Shubham #53
Messaging.EmailFileAttachment vs Messaging.singleEmailMessage in Salesforce?
Describe the difference between two classes in Salesforce with example:
August 10, 2017 at 2:05 pm #21563Aman #1
SingleEmailMessage Methods :
Contains methods for sending single email messages.
All base email (Email class) methods are also available to the SingleEmailMessage objects.
Email properties are readable and writable. Each property has corresponding setter and getter methods. For example, the toAddresses() property is equivalent to the setToAddresses() and getToAddresses() methods. Only the setter methods are documented.
EmailFileAttachment Class :
EmailFileAttachment is used in SingleEmailMessage to specify attachments passed in as part of the request, as opposed to existing documents in Salesforce.
Please Register to reply to this topic. /