For more flexibility, you can create custom Communities email templates in Visualforce. For a Visualforce email template, use the $Network global merge field type and its properties, as described in this table. These fields are populated only in Visualforce Communities email templates.
Field Name | Description |
---|---|
$Network.ActionForVerificationEmail | Used in one-time password (OTP) emails to specify the action that prompted sending a verification email. |
$Network.AsyncVerificationLink | Used in asynchronous emails to send a verification link (URL) to users. Users click the link to verify their email address with Salesforce. After verifying their email address, external users can log in with a one-time password (OTP) via email (passwordless login). |
$Network.BrowserForVerificationEmail | Used in OTP emails to specify the browser where the action occurred that prompted sending a verification email. |
$Network.CodeForVerificationEmail | The verification code sent in the OTP email. |
$Network.Name | The name of the community. |
$Network.NetworkUrlForUserEmails | The URL to the login page of the community, for example,
https://acme.force.com/partners/login. If this merge field is in the welcome email to new members, the URL is appended with a link to a reset password page. |
$Network.OperatingSystemForVerificationEmail | Used in OTP emails to specify the operating system where the action occurred that prompted sending a verification email. |
$Network.passwordLockTime OR {!PASSWORD_LOCK_TIME} |
Used in the formula field for lockout emails to specify how long a user must wait until logging in again after being locked out. |
{!$Network.Name} {!$Network.NetworkUrlForUserEmails}