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.
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);
}
Contact Salesforce Customer Support if you’re still having trouble sending emails from the guest user record.
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.