Newletter Unsubscription & Contact Groups

Akentico Developer asked on October 21, 2015 17:00


 I need a way to unsubscribe both individuals and contact groups from emails of an email campaign.  The default macro of {%UnsubscribeLink%} provides the subscriber guid, newsletter guid, issue guid, and sometimes the contactid (if it's a contact group).  Unsubscribing individuals work fine; it's the contact group that has problems.  How would you:
  1. Get the individual subscriber guid from the contact id? When unsubscribing the contact group, the subscriber guid is of the contact group, NOT of the individual.

  2. Get the contact group id from the contact id? I need to delete the contact from the contact group as a requirement.

  3. Create a new macro to unsubscribe from ALL emails, not just the 1 email?

Any help would be greatly appreciated.


Recent Answers

Pavel Jiřík answered on November 13, 2015 14:35 (last edited on November 13, 2015 14:35)

Hi, what is your current version of Kentico?

Because in Kentico 8.2 this functionality is working out of the box. If you subscribe a contact group to a newsletter and some subscriber inside of that group decides to unsubscribe, the {%UnsubscribeLink%} macro will unsubscribe only that subscriber but will keep the rest of the contact group members subscribed.

Here is how it works: When a subscriber clicks on an unsubscribe link, an activity called "Email campaign unsubscription" is logged for that subscriber. Then, if another newsletter issue is sent, the system filters out every subscriber that has this activity logged among its activities.

And of course, if you deleted the "campaign" activity from subscriber's activities, he would start receiving newsletter issues again.

0 votesVote for this answer Mark as a Correct answer

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