New answers tagged

0

The Messaging.MassEmailMessage does not have a toAddresses property. With that class, you specify target objects via setTargetObjectIds(), which accepts a list of Id values of Contacts, Users, or Leads. It appears that you probably meant to declare the variable mail as Messaging.SingleEmailMessage. As a first step in debugging, it's important to validate ...


Top 50 recent answers are included