Developer forum

Forum » Development » GetRecipientByEmail?

GetRecipientByEmail?


Reply
Hi, Im trying to make a little check when a user logs in to a extranet. I need to find out if a user are subscribed to certains NewsletterV3 categories. Here is what I've done so far: //Get user: Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs myUser = (Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs)args; //Get reciepient by email: Dynamicweb.NewsLetterV3.Recipient myRecipient = Dynamicweb.NewsLetterV3.Recipient.GetRecipientByEmail(myUser.User.UserID, myUser.User.Email); But the script fails ... What am I doing wrong? /Morten

Replies

 

You must be logged in to post in the forum