Can I use setToAddresses() with Messaging.MassEmailMessage?
I was going through the documentation for the MassEmailMessage class and in the setTargetObjectIds part it states
All emails must have a recipient value in at least one of the following fields: toAddresses ccAddresses bccAddresses targetObjectId
So I thought I should be able to set toAddresses somehow? Is there a way to do it without using a targetObjectId? I want to pass the email addresses as a List of strings.