Ensure Guest User Access to Emails Created with Visualforce Email Templates
Where: This change applies to Salesforce orgs with active public communities, sites, and portals in Enterprise, Performance, Unlimited, and Developer editions.
When: This security policy was released in Spring ’20 and was immediately enforced.
Who: This change applies to Visualforce email templates that target guest users in communities.
Why: Emails that use Visualforce email templates send information based on a user’s access to Salesforce data. But because data access for guest users is limited in Salesforce, the template doesn’t work.
- Ensure that you have the Author Apex user permission.
- Open a Visualforce email template and add this attribute to the emailTemplate tag:
- Save the template.