The $Network global merge field type works only in the context of Visualforce emails for communities.
You can create custom email templates for communities using Visualforce, which allows you to use custom company branding in your email templates. For Visualforce email template, use the $Network global merge field type and its properties, as described in this table.
Field Name | Description |
---|---|
$Network.Name | The name of the community, as entered during community creation. |
$Network.NetworkUrlForUserEmails | The URL to the login page of a community. For
instance, https://acme.force.com/partners/login. If this merge field is part of the welcome email being sent to a new external user, the URL is appended with a link to a reset password page. This field is populated only if it is used in a Visualforce email template for one of three email types supported for Communities. |
$Network.passwordLockTime | Used in the formula field for lockout emails to how long a customer must wait until they are able to log in again, after being locked out. |
{!$Network.Name} {!$Network.NetworkUrlForUserEmails}