• #21562
    Salesforce | Shubham Shubham #6

    Messaging.EmailFileAttachment vs Messaging.singleEmailMessage in Salesforce?

    Describe the difference between two classes in Salesforce with example:

    • Messaging.EmailFileAttachment
    • Messaging.singleEmailMessage

    Tagged: , , , ,

    #21563
    Salesforce | Aman Aman #4

    Hello shubham,

    SingleEmailMessage Methods :
    Contains methods for sending single email messages.
    Namespace
    Messaging
    Usage
    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.

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Property of Forcetalks.com
Copyright 2017 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?