You need to sign in to do that
Don't have an account?
Matthew Reyes 3
Messaging.sendEmail list size limit
What is the maximum list size I can pass to Messaging.sendEmail(list<SingleEmailMessage>)? I'm sending the email to internal users by specifying their userId using setTargetObjectId, so daily limits shouldn't be a factor.
[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm#email_limits_section
The docs say we are allowed to send 100 emails per SingleEmailMessage (implying use of the setToAddresses function), but isn't specific about how many SingleEmailMessage objects we can pass to a single sendEmail call. In this instance, each SingleEmailMessage will only have 1 email since i'm leveraging setTargetObjectId instead of setToAddresses.
* The email spec says you can use + as part of your email and anything after the plus will be ignored in respects to routing. So bob+test1@example.com, bob+test2@example.com, bob+test3@example.com are all unique emails but will all get delivered to bob@example.com. This is very useful for testing this type of thing.