v4.11.11 - Reduced SingleEmailMessage limit usage #574
jongpie
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Core Unlocked Package Changes
LoggerEmailSender
ChangesApexEmailNotification.UserId
) of Salesforce users configured as recipients (labeled as '1' in the screenshot below) was passed to the instance methodMessaging.SingleEmailMessage.setToAddresses()
, resulting in the email counting as an email to an external email address, which has an org daily limit. You can check your org's limit using this Apex snippet:System.debug(OrgLimits.getMap().get('SingleEmail'));
ApexEmailNotification.UserId
) is passed to the instance methodMessaging.SingleEmailMessage.setTargetObjectId()
. UsingsetTargetObjectId()
to send emails to users does not count towards the org's daily limitInstallation Info
Core Unlocked Package - no namespace
Full Changelog: v4.11.10...v4.11.11
sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001Oih7QAC
sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001Oih7QAC
This discussion was created from the release Reduced SingleEmailMessage limit usage.
Beta Was this translation helpful? Give feedback.
All reactions