Answer the question
In order to leave comments, you need to log in
How to set up unsubscribe in sparkpost?
Greetings.
Trying to migrate to sparkpost with mandrilla.
I don't know how to set up an unsubscribe.
Here it is described as = https://support.sparkpost.com/customer/portal/arti...
Who can help?
Answer the question
In order to leave comments, you need to log in
In sparkpost, they decided to hang up the processing of unsubscribes on developers for complete freedom in implementing this mechanism, and not to give everyone their own ready-made solution.
In short, the creation algorithm is as follows:
1) Create a page on your side that will be shown to all unsubscribers, for example, with the message "You are unsubscribed. We are very sorry that you are leaving us. Maybe you unsubscribed by mistake? Then click this button, and you will be signed again: [button]."
2) Create a webhook handler on your side. The handler should accept sparkpost unsubscribe events and use the Suppression List API to send unsubscriber addresses to your sparkpost account's list.
3) Now you need to create a webhook in sparkpost that will send to your unsubscribe event handler.
4) And finally, in the email templates in sparkpost, insert the unsubscribe link. The URL of the link should lead to your unsubscribe page from step 1. Clicking on the unsubscribe link or on the 'unsubscribe' button in your email client will invoke the webhook created in step 3.
...
PROFIT!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question