为了提升安全标准,从 Summer ’23 主版本开始,Salesforce 会阻止从来宾用户记录中的未验证电子邮件地址发送的所有电子邮件。
如果您通过 Apex 进行自定义实施或一些流使用从来宾用户记录发送的电子邮件,您可能需要对来宾用户记录执行一些更改以继续发送电子邮件。
您可以使用组织内的电子邮件地址继续从来宾用户记录发送电子邮件。如果您的组织还没有电子邮件地址,则创建组织内的电子邮件地址。按照以下步骤验证组织内的电子邮件地址。在来宾用户记录的电子邮件字段添加组织内的电子邮件地址。
如果您使用 Apex 通过来宾用户发送电子邮件,请将发件人设置为经过验证的组织内的电子邮件地址。
示例代码:
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); }
如果您在从来宾用户记录中发送电子邮件时仍然出现问题,请联系 Salesforce 客户支持。
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.