Skip to main content
I understand that there is 5000 email limitation per day by using Messaging.SingleEmailMessage.setToAddresses(toAddresses), however, based on the post https://help.salesforce.com/articleView?id=000002490&language=en_US&type=1, it says there won’t be any email limitation when using Messaging.SingleEmailMessage.setTargetObjectId(targetObjectId), can anyone confirm this? Thanks.

 
1 Antwort
  1. 26. Juli 2018, 04:12
    Yes .. Emails sent using setTargetObjectId() set against the user object do not count against the SingleEmailMessage limit.  To send a SingleEmailMessage, you need to call setTargetObjectId() with a contact or user id or Lead 

    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 addresses in setToAddresses means the email does count toward the limit. 

    You can send an unlimited amount of email to your organization’s internal users, which includes portal users 

     
0/9000