1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to Unsubscribe from newsletter

How to Unsubscribe from newsletter

4 posts, 0 answered
  1. S R
    S R avatar
    6 posts
    Registered:
    22 Sep 2009
    07 Jan 2010
    Link to this post
    A user can subscribe to more than one Newsletter Groups with same email id.
    There is a "Unsubscribe" link that will be sent in every newsletter.
    If a user has subscribed to 2 Newsletter Groups ( say : Group A & Group B). and recieves a newsletter from Group A. On clicking of the unsubscribe link he got in the mail.. is it possible to unsuscribe from Group A newsletter only. and retain subscription to Group B ? Do i have to pass any additional parameter in the Unsubscribe URL to recoginse the users Group or so? or is there any other way to do it.  Pls help.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Jan 2010
    Link to this post
    Hi S R,

    The build in implementation does not expose this functionality. First you need to find a way to set from which newsletter group this user will be unsubscribed - say A. Then you have to keep this user in group B. The only way to do this getting the user again and adding it to B.


    sample code:

    ISubscriber subscriber = dataManager.GetSubscriber ( subscriberEmail );
     if ( subscriber != null )
     {
        Guid groupID = new Guid("89B46498-9160-4199-B584-B434387F37ED");
        IGroupSubscriber GSubscriber = dataManager.CreateGroupSubscriberRelation(groupID , subscriber.SubscriberId);
        dataManager.SaveGroupSubscribers(GSubscriber);
     }


    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Godthaab
    Godthaab avatar
    22 posts
    Registered:
    06 Oct 2003
    04 Feb 2010
    Link to this post
    Hi Ivan
    I was about to use the Newsletter to a customer and now the plans are not workable. 
    It surprises me very much that you can not create newsgroups without this disadvantage.
    Is it really true - Is there any future plans for Newsletter 3.x. If not then what about v4.0?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    04 Feb 2010
    Link to this post
    Hello Godthaab,

    The module will be rewritten for Sitefinity 4.0. The current implementation will not be changed. You could use the code provided in the previous post. I am sorry for the inconvenience caused.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Register for webinar
4 posts, 0 answered