Email unsubscribe links

  • Release version: Australia
  • Updated March 12, 2026
  • 3 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Email Unsubscribe Links

    Administrators can enhance user experience by incorporating unsubscribe links into email notifications, allowing users to opt-out of specific messages easily. The system provides two types of unsubscribe links: one that generates an email to the instance and another that directs users to their notification preferences.

    Show full answer Show less

    Key Features

    • Unsubscribe by Email (Unauthenticated): Uses the macro ${NOTIFUNSUB} to create an HTML mailto hyperlink for users to unsubscribe via email.
    • Unsubscribe by Notification Preferences (Authenticated): Utilizes the macro ${NOTIFPREFS} to link directly to the user's notification preferences page after logging in.
    • Email Layouts: Administrators can embed these macros in email layouts, templates, and notifications to streamline the unsubscribe process.
    • Alternative Unsubscribe Methods: For email clients that do not support mailto links, the Unsubscribe from Notification inbound action can process unsubscribe requests.
    • Translation Support: For translated emails, a system property allows adding an [UNSUB] prefix to the subject line for better unsubscribe handling.

    Key Outcomes

    By implementing unsubscribe links, users can easily manage their email preferences, reducing unwanted notifications and improving overall satisfaction. Unsubscribing through secondary email addresses is supported, allowing flexibility for users with multiple subscriptions.

    Ultimately, these features empower ServiceNow customers to enhance communication and user engagement through effective notification management.

    Administrators can enable your users to stop receiving particular email messages by adding unsubscribe links to notifications.

    Note:
    Base system notifications include unsubscribe and notification preferences links.
    The two types of unsubscribe links are:
    • An unsubscribe link that creates an email message to the instance.
    • An unsubscribe link that opens the notification preferences for the user on the instance.

    The available parameter for both of these unsubscribe links is link_text, used to specify the text to display as a link within quotation marks.

    Table 1. Available unsubscribe macros
    Unsubscribe type Macro used Description

    Unsubscribe by email

    (Unauthenticated)

    ${NOTIF_UNSUB} The system generates an HTML mailto hyperlink. When users select the link, their browser or email client creates a preformatted unsubscribe email message to the instance.

    Unsubscribe by notification preferences

    (Authenticated)

    ${NOTIF_PREFS} The system generates an instance link directly to the notification preferences for this notification type.
    Administrators can add unsubscribe macros to the following notification record types:
    • Email layouts
    • Email templates
    • Email notifications

    Unsubscribe by email

    You can enable users to unsubscribe from emails either by using the list unsubscribe header or a preformatted email message.
    • Unsubscribe using list unsubscribe header
      Unsubscribing from email notification using the list unsubscribe header provides users with an unsubscribe link that appears next to the email address. It sends an unsubscribe request and a preformatted email message is automatically sent.
      Note:
      The unsubscribe option or the placement of the button can vary based on the email client being used.
    • Unsubscribe with preformatted email message
      Unsubscribing by email requires the user email client or browser to create a preformatted email message containing the following elements:
      • The To field includes the email address of the instance.
      • The Subject starts with the string Unsubscribe from.
      • The Body has a JSON string with a name-value pair consisting of Unsubscribe and an array value that contains two more name-value pairs.
        • The notification_id parameter specifies the sys_id of the notification that the user wants to unsubscribe from.
        • The unsub_token parameter specifies an instance ID that the system uses to verify that the email came from a ServiceNow instance.
    Note:
    Some email clients and web browsers, such as Gmail on Chrome, require extra client configuration to support mailto hyperlinks. Administrators can provide an alternative unsubscribe method for users whose email client or browser doesn’t support mailto links.

    The Unsubscribe from Notification inbound action processes the email and unsubscribes the sender from the listed notification. Unsubscribing by email message doesn’t require users to authenticate with the instance first.

    For translation-enabled emails, if the unsubscribe option does not work, follow these steps:
    1. Create a system property named glide.email.translation.unsubscribe.prefix and set it to true. Enabling this property adds the prefix [UNSUB] : to the preformatted email subject line.
    2. Activate the Unsubscribe from Translated Notifications inbound email action, or update the existing Unsubscribe from Notification inbound email action to include the [UNSUB] : prefix in the subject line using conditions or a script.
    Note:
    Users with multiple subscribed email addresses who unsubscribe from the primary email address are automatically unsubscribed from all other email addresses. Unsubscribing through secondary email addresses is supported beginning with the Xanadu release. The request is fulfilled only for that secondary email address.

    Unsubscribe by notification preferences

    Unsubscribe by notification preferences requires the user's browser to navigate to the notification preferences page on the instance. After logging in, the system displays the notification preferences for this particular notification.

    You can set preferences for this notification such as disabling notifications for a particular device and save the notification preferences for changes to take effect.

    Unsubscribe links

    This email layout adds several unsubscribe links to the bottom of each email notification.

    ${NOTIF_UNSUB} from this notification by email or ${NOTIF_UNSUB+link_text="click
          here"}.
    Manage your ${NOTIF_PREFS} or ${NOTIF_PREFS+link_text="click here"}.

    When rendered in an email notification, the unsubscribe links display only the link text.

    Figure 1. Sample email with unsubscribe links
    An email wiith unsubscribe and notification preferences links.

    If the Unsubscribe link is selected, the email client creates a message similar to the one shown in the following figure.

    Figure 2. Sample unsubscribe by email message
    An email that shows how the email client works after the unsubscribe link is selected