Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

newsletter: confirm subscription via double-opt-in


Reply


1529 Views

Avatar
dacar

Community Member, 168 Posts

25 November 2009 at 12:18pm

Hi, i am wondering if there is a way to implement a double-opt-in for newsletter subscribers. I have already tried tonisch suggestions and code (see [url]http://silverstripe.org/all-other-modules/show/259592?start=0#post273689#post273689[/url]). But i would better like to be closer to the newsletter module.

What i need is to decorate the member class to add "confirmationCode (a random unique code)" and "newsletterConfirmed" to the member table (i think the data is written into member in SubscriptionPage.php at line 234).

In subscribeEmail.ss there must be the confirmationCode and a link to a template where the user can enter this code. If the code match, newsletterConfirmed should set to "1".

I am also looking for a way to check the email in the subscription form. i think, data should not be written, if the email address already exists. there should be a hint if the address already exists.

I hope there will be some pro's who can help because i am not able to solve this at the moment :-(
Would be nice to find someone who shows me how to decorate this dataobject or even give some hints.

Greetings, Carsten.