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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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



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 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 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.