Activity Forums Salesforce® Discussions What is mail.setSubject() in Salesforce?

  • Deepak

    Member
    May 12, 2020 at 5:43 AM

    It is Optional. We call it as a email subject line. If you are using an email template, the subject line of the template overrides this value.

  • [adinserter block='9']
  • Sumit kumar

    Member
    May 12, 2020 at 6:49 AM

    The setToAddresses() function sets the to field of the email. This function takes a string list as an input and hence we have created a string list object and added the to address to that string. … The setSubject() function sets the subject of the mail and the setHtmlBody() sets the body of the mail in HTML form

Log In to reply.