Activity Forums Salesforce® Discussions How can I send an email through apex when merge fields are used in Visualforce email template?

  • Deepak

    Member
    November 12, 2019 at 2:13 pm

    If you're using a Visualforce email template, you define how you want your data to be formatted / displayed when you create the template.  To pass the objects to fill those fields, you use the "Recipient" and "RelatedTo" attributes when you call the template object from APEX.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos