---
schema_version: "1"
id: e902367610dacd5826ea622b3d6cdcf31ddb9cec3f8ff932ae0c4146525bdd02
title: Considerations for Using Visualforce Email Templates with Guest Users
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/email_templates_vf_guest_users_considerations.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.email_templates_vf_guest_users_considerations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 078c99edee7eaf49b416efa9fb314cccb0479ff22921f023e5a3d9e88c258ca7
description: Review these considerations when using Visualforce Classic email templates to send emails to guest users.
products:
  - Sales Cloud
  - Cross Cloud
  - Service Cloud Voice
release: "264"
---
# Considerations for Using Visualforce Email Templates with Guest Users

Review these considerations when using Visualforce Classic email templates to send emails to guest users.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Essentials</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

- When `renderUsingSystemContextWithoutSharing="True"`, the email template runs in system mode, which bypasses user permissions, field-level security, and organization-wide defaults. Be careful when using this setting so that you don't inadvertently expose sensitive data. Before using this setting, assess the impact of the guest security policy and, if necessary, update the Visualforce email templates instead.
- Sending a test email using a Visualforce email template doesn’t accurately represent the email that a guest user receives. Instead, access your Experience Cloud site as a guest user and initiate sending an email the way a guest user does.
    
    Imagine that you’re testing an email template to recover passwords. Create an Experience Cloud site user with your email address. Then go to the site as a guest user, click the **Forgot Password?** link, and enter the name of the user you just set up.
- When sending a Visualforce email template to a guest user, these global variable values have different values.

 
| Global Variable | Expected Output for Guest Users |
| --- | --- |
| $Api.Session\_ID | NULL\_SESSION\_ID |
| $Cache.Session | Session not found - Session Cache not supported |

- When sending a Visualforce email template to a guest user, checking an object’s accessibility using $ObjectType returns these output values. The returned value is false even though you can access that object in system context.
    
    If you know that you have access, ignore the returned value.

 
| $ObjectType Global Variable Attribute | Expected Value for Guest Users |
| --- | --- |
| accessible | false |
| createable | false |
| deletable | false |
| mergeable | false |
| queryable | false |
| searchable | false |
| undeletable | false |
| updateable | false |

- Checking the value of a permission (for example, using $Permission.canSeeExecutiveData) always returns false. The returned value matches what Apex returns when you check a permission in system context.