Allowing Users to Opt Back In
Sometimes users change their minds. They opted out, and now they miss receiving your emails. How can a user opt back in?
Help users opt back in with one of three options: a hosted opt-in page, on your website (using the API), or via a triggered email.
Via Hosted Opt-In Page
If a user clicks the unsubscribe link in an email they have previously received, this will direct them to the hosted opt-out page.
The optout page will check the user's profile:
{if profile.optout=="all"}
Then it will display an option to click to opt back in.
Via Your Website and the API
If you use the API, you could follow these suggested steps in order to give users the option to opt back in by signing back up for email via your website. For example, when users click the "unsubscribe" link in an email and arrive on the unsubscribe confirmation page, you can provide a button for users to opt back in in case they clicked unsubscribe link in error.
- When the user clicks submit, post a USER api call, passing the parameter
optout_email
with a value ofnone
. This will reset the user's status to valid. - Alternatively, if you don't want to revalidate an opted out user immediately, you can use response codes to check API error responses. See API Response Codes. For example, if error 32 or 33 is detected (user is opted out), code your webpage to show a message such as: "You are opted out. Do you wish to opt back in?" Include a submit button.
Via Triggered Email
Alternately, you could follow these suggested steps in order to send a triggered email to the user that would allow them to click a confirmation link within the email in order to opt back in.
- First create a template named Opt-in Confirm
- In the Code tab of that template include:
a href="{signup_confirm()}"click here to opt back in.
- Send this template using the SEND api call when an opted-out user tries to signup or completes an action on your website that would send an email. Note that only this template named Opt-in Confirm can be sent to opted-out users. The signup_confirm without any parameters will make the user valid.
If you use the Purchase API, please also see force send for purchase receipts.
If a user has hardbounced, not opted out, then the above will not work. Please contact Support or your Customer Success Manager with questions.
Via Lifecycle Optimizer
Design a flow that revalidates the opt-out status of a user's profile when they subscribe to a list.
- Create a new Lifecycle Optimizer flow.
- Select the List Joined Entry and set the list you'd like to use.
- Add an Action. Select the Set Opt-out Status Action.
- Set the opt-out status you wish to use.
When a user subscribes to the list, their opt-out status will change without a developer having to update the API.