To improve security standards, Salesforce is blocking any emails sent from an unverified email address in the guest user record starting with the Summer ’23 major release.
If you have custom implementations with Apex or flows that use emails sent from guest user records, you may need to make some changes to the guest user record to continue sending emails.
You can continue sending emails from the guest user record using an organization-wide email address. Create an organization-wide email address if your org doesn’t already have one. Follow the steps to verify the organization-wide email address. Add the organization-wide email address in the Email field of the guest user record.
If you are using Apex to send emails from guest users, set the sender to the verified org-wide email address.
Contact Salesforce Customer Support if you’re still having trouble sending emails from the guest user record.
To continue sending emails from the guest user record, use an organization-wide email address (OWA) as the sender. Follow these steps:
Query the OrgWideEmailAddress object to retrieve the Id of the desired do-not-reply address, then call setOrgWideEmailAddressId() on the SingleEmailMessage object before sending
Sample code:
OrgWideEmailAddress[] owea = [select Id from OrgWideEmailAddress where Address =
'doNotReply@<somedomain>.com'];
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
if ( owea.size() > 0 ) {
mail.setOrgWideEmailAddressId(owea.get(0).Id);
}Restrict Emails Sent from the Guest User (Release Update)
Organization-Wide Email Addresses
Configure the Site Guest User Record
Setting a 'from' address in SingleEmailMessage
000395326

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.