Developer forum

Forum » Development » UserManagement w. Newsletter V3 signup

UserManagement w. Newsletter V3 signup


Reply
Hi,

In the good old days we made a custom module that added a extranet user to a newsletter v3 category.
With a notification subscriper for:
[Subscribe(Dynamicweb.Notifications.ExtranetExtended.User.Created)]
- our code look something like this:

Dynamicweb.NewsLetterV3.Recipient MyRecipient = Dynamicweb.NewsLetterV3.Recipient.GetRecipientByEmail(MyCurrentUser.Email);
Dynamicweb.NewsLetterV3.Subscription MySubscription = new Subscription(NewsletterListID, Dynamicweb.Modules.Common.Constants.MailFormat.HTML);
MyRecipient.Subscriptions.Add(MySubscription);
MyRecipient.CreationDate = System.DateTime.Now;
MyRecipient.Save();

But with the new UserManagement the above shouldnt be necessary or should it?

    1. What is "Best Pratice" on using UserManagement with Newsletter Signup?
    2. If we choose to use a Extranet-group for newsletter signup -will we loose all data and statistic on the unique user?
    3. What have you done to solve this issue? Extranet sign up with the option of signing up for newsletter as well? Code examples? Extranet-groups?

Thank you for your reply ;)

/Morten


Replies

 
Nicolai Høeg Pedersen
Reply

Being a member of a UM group is not enough to have the user being a member of a newsletter group - because the newsletter membership holds additional information in an other table.

So you still have to do this. But you can use UM for managing user information and group information - but still add the user to the appropiate newsletter category.

We are in the process of taking a look at this and will hopefully have a fix ready for 7.2 where you can use either one to manage susbscribtions/group memeberships.

BR Nicolai

 

You must be logged in to post in the forum