Loading

Block Emails Sent from Unverified Email Addresses in the Guest User Record

Дата публикации: Jun 15, 2026
Описание

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:

  1. Create an organization-wide email address if your org does not already have one.
  2. Verify the organization-wide email address.
  3.  Add the organization-wide email address in the Email field of the guest user record. If you use Apex to send emails from guest users, set the sender to the verified org-wide email address using the setOrgWideEmailAddressId() method as shown in the example below.

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);
}
Номер статьи базы знаний

000395326

 
Загрузка
Salesforce Help | Article