+ 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.