Activity Forums Salesforce® Discussions What for setToAddresses is used while sending an email in Salesforce?

  • Prachi

    Member
    November 12, 2019 at 1:43 pm

    Hi,

    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.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos