Email unsubscribe
Summarize
Summary of Email Unsubscribe
Administrators can enhance user experience on the ServiceNow AI Platform by adding unsubscribe links to email notifications, allowing users to stop receiving specific messages. The system includes two types of macros for creating these unsubscribe options: one for email requests and another for accessing notification preferences.
Show less
Key Features
- Unsubscribe by Email: Utilizes the macro ${NOTIFUNSUB} to generate an HTML mailto hyperlink that creates a pre-formatted email for users to unsubscribe easily.
- Unsubscribe by Notification Preferences: Uses the macro ${NOTIFPREFS} to direct users to their notification preferences page once they authenticate.
- Direct Unsubscribe Option: Users can click an "Unsubscribe" link next to their email address in notification emails, which initiates an unsubscribe request.
- One-Click Unsubscribe: Supported from Washington Patch 1 onwards, allowing users to unsubscribe with a single action.
- Handling Multiple Email Addresses: Unsubscribing from the primary email address removes all associated addresses, though secondary unsubscribing is not currently supported.
Key Outcomes
By implementing these unsubscribe options, administrators improve user control over notifications, enhance compliance with user preferences, and reduce unnecessary email clutter. Users can easily manage their notification settings, leading to a more personalized and efficient communication experience within the ServiceNow platform.
Administrators can add unsubscribe links to notifications so that users can stop receiving particular email messages.
- 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.
| Unsubscribe type | Macro used | Description | Available parameters |
|---|---|---|---|
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 pre-formatted unsubscribe email message to the instance. | link_text: Specify the text to display as a link within quotation marks. |
Unsubscribe by notification preferences (Authenticated) |
${NOTIF_PREFS} | The system generates an instance link directly to the notification preferences for this notification type. | link_text: Specify the text to display as a link within quotation marks. |
- Email layouts
- Email templates
- Email notifications
Unsubscribe by email
- The To field has 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 of Unsubscribe and an array value that contains two more name-value pairs.
- The notification_id parameter specifies the Sys ID of the notification the user wants to unsubscribe from.
- The unsub_token parameter specifies an instance ID the system uses to verify that the email came from a ServiceNow instance.
The Unsubscribe from Notification inbound action processes the email and unsubscribes the sender from the listed notification. Unsubscribing by email message does not require users to authenticate with the instance first.
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.
Users can set preferences for this notification such as disabling notifications for a particular device. Users must save their 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 only display the link text.
If a user clicks the Unsubscribe link, the email client creates a message such as this: