function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
asadim2asadim2 

SingleEmailMessage limits

According to the online documentation:

If you use SingleEmailMessage to email your organization’s internal users, specifying the user’s ID in setTargetObjectId means the email doesn’t count toward the daily limit. However, specifying internal users’ email addresseses in setToAddresses means the email does count toward the limit.

Question: what if instead of the user's ID I pass in a contact ID? Is that considered an exclusion from the daily limits as well?
pconpcon
This only applies to user ids, and not contact ids.  This is ment to stop people from using Salesforce as a "spamming" engine.