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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

newsletter: confirm subscription via double-opt-in


Go to End


2079 Views

Avatar
dacar

Community Member, 173 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 http://silverstripe.org/all-other-modules/show/259592?start=0#post273689#post273689). 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.