People must be able to stop getting your marketing email easily. Mailcandor handles the mechanics for broadcasts so you only decide what kinds of email to offer.
What every broadcast email includes
- A
List-Unsubscribeheader with the contact’s personal link. - A
List-Unsubscribe-Post: List-Unsubscribe=One-Clickheader. Together these give one-click unsubscribe as defined in RFC 8058, which Google expects from bulk senders.
To show a link in the email too, put {{{UNSUBSCRIBE_URL}}} in the HTML:
<p style="font-size:12px">Not interested any more? <a href="{{{UNSUBSCRIBE_URL}}}">Unsubscribe</a>.</p>
What the person sees
Opening the link shows “Unsubscribe sam@example.com?” with an Unsubscribe button. After pressing it: “You are unsubscribed”, naming your team. Links are signed, never expire, and work in an email opened a year later.
What unsubscribing does
| The broadcast had | Unsubscribing |
|---|---|
| No topic | Marks the contact unsubscribed in every audience on your team with that address. They get no more broadcasts. |
| A topic | Takes them out of that topic only, in every audience, and adds a topic-only entry to your suppression list. Other broadcasts still reach them. |
You can see unsubscribed contacts on the audience page: filter by Unsubscribed. When a contact is marked unsubscribed, a contact.updated webhook tells your app.
To create a topic
- Open Marketing > Topics and choose Add topic.
- Enter a Name such as
Product newsand an optional description. - Pick Who gets it:
- Everyone, until they leave (
opt_in) - Only people who join (
opt_out)
- Everyone, until they leave (
- Save. Who gets it cannot be changed later.
With the API:
curl https://api.mailcandor.com/v1/topics \
-H "Authorization: Bearer $MAILCANDOR_KEY" -H "Content-Type: application/json" \
-d '{ "name": "Product news", "default_subscription": "opt_in" }'
Then pick the topic when you write a broadcast.
To change a contact’s topics or unsubscribe them yourself
Topic choices per contact are set with the API (there is no dashboard field for them):
curl -X PATCH https://api.mailcandor.com/v1/audiences/AUDIENCE_ID/contacts/sam@example.com \
-H "Authorization: Bearer $MAILCANDOR_KEY" -H "Content-Type: application/json" \
-d '{ "topics": [ { "id": "TOPIC_ID", "subscription": "opt_out" } ] }'
opt_in puts them in the topic, opt_out takes them out. GET on the same URL shows their topics.
To unsubscribe someone from everything, send {"unsubscribed": true}, or use Edit on the contact in the dashboard and turn on Unsubscribed. To re-subscribe, set it back to false, but only if the person asked.
Unsubscribes and the suppression list
- Leaving a topic adds a suppression that only blocks email sent under that topic.
- Hard bounces and spam complaints add full suppressions, which block all email to the address, transactional too.
- See them under Suppressions or with
GET /v1/suppressions.
If it does not work
- Someone still gets a topic’s emails after leaving: check the broadcast was sent with that topic chosen. Broadcasts without a topic go to everyone not unsubscribed.
- “You are not on this list”: the contact was deleted since the email was sent.
- Unsubscribe links in your own HTML do nothing: use
{{{UNSUBSCRIBE_URL}}}exactly, with three braces.