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

  • Deepak

    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.

  • Sumit

    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.

Popular Salesforce Blogs

Popular Salesforce Videos