Opt-Out Unsubscribe Email Template

Angel Espindola asked on September 23, 2015 21:07

How can I set up a opt-out email template to my email campaigns? Right now the Unsubscribed is linked up to a browser opt out or landing page. I don't want to use a landing page only a Unsubscribe email confirmation.

A-

Recent Answers


Maarten van den Hooven answered on September 23, 2015 21:40

Hi Angel,

You can add this {% UnsubscriptionLink %} in your email template.

Set the URL where the unsubscribe link need to go in the configuration of your newsletter there is an option "Unsubscription page URL".

On the page where you link to the unsubribe page you need to add an webpart called Newsletter Unsubscription.

See her some documentation how to create a newsletter through email marketing.

Is this what you needed or do you have an other question, if so please let me known.

If this answer helped you, please vote for my answer :-)

0 votesVote for this answer Mark as a Correct answer

Maarten van den Hooven answered on September 24, 2015 08:57

Hi Angel, I was talking with an colleague about your question and maybe I misunderstood what your question exactly is.

Do you want the people to confirm there unsubscribtion to an email? If so what you need to do is add an page with the Unsubscription request web part.

You replace the macro {% UnsubscriptionLink %} with an custom unsubscribe link like described here https://devnet.kentico.com/articles/unsubscribe-link-with-custom-text-in-newsletter. And add here the URL of this page with the Unsubscription request web part. Something like this :

<a href="http://YourDomain.com/SpecialPages/UnsubscriptionRequest.aspx?subscriberguid={%SubscriberGUID%}&newsletterguid={%NewsletterGUID%}&issueid={%IssueID%}">Your custom text to unsubscribe</a>

The Unsubscription request web part shows an form where the user can fill in his e-mail addres to unsubscribe from the newsletter on your website. So you need to customize this a little to let it work for your situation.

You clone this web part and change this in the code:

In the SetupControl() method you add :

Guid subscriberGuid = QueryHelper.GetGuid("subscriberguid", Guid.Empty);
Guid newsletterGuid = QueryHelper.GetGuid("newsletterguid", Guid.Empty);
if ((subscriberGuid != Guid.Empty) && (newsletterGuid != Guid.Empty))
{
    SubscriberInfo subscriber = SubscriberInfoProvider.GetSubscriberInfo(subscriberGuid, siteId);
    txtEmail.Text = subscriber.SubscriberEmail;
}

You need to change the code NewsletterInfo news = NewsletterInfoProvider.GetNewsletterInfo(NewsletterName, siteId); on line 183 to :

NewsletterInfo news = NewsletterInfoProvider.GetNewsletterInfo(newsletterGuid, siteId);

This web part will send an email with the template newsletter.unsubscriptionrequest so you need to add an email template the same code name. Add in the email template the macro {% UnsubscriptionLink %} this will link to unsubscription page as we created above.

Good luck!!!

If this answer helped you, please vote for my answer :-)

2 votesVote for this answer Mark as a Correct answer

Maarten van den Hooven answered on September 25, 2015 19:31

Hi Angel, Dit you succeeded with the opt-out email template, or still running into problems? If so please let us known.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.