Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Email confirmation of newsletter signup

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 2903 Views
  • w1
    Avatar
    Community Member
    21 Posts

    Email confirmation of newsletter signup Link to this post

    We are looking for a simple way of having newsletter signups being confirmed by clicking on a link in the acknowledgement email

    Has anyone implemented this feature successfully please?

    Some direction would be fantastic

    thanks
    Peter

  • tonisch
    Avatar
    Community Member
    15 Posts

    Re: Email confirmation of newsletter signup Link to this post

    Hi!

    This is exactly the feature I want to have. This method is called double opt-in and I am looking forward getting a sollution for this problem!

    Thanx in advance!

  • tonisch
    Avatar
    Community Member
    15 Posts

    Re: Email confirmation of newsletter signup Link to this post

    Hi!

    I got kind of a solution for the email-confirmation...
    I just built a form-page, all inserts will be safed in a simple table in the dabase. The subscriber gets a email with a random generated Code. With this code he can go to a second page and put in a second formula. Is his code right, I just make the same actions like the »normal« newsletter-module-subscription form.
    For Unsubscribe the function of the newslettermodule can be taken.

    I hope this can help you.

  • Nico
    Avatar
    Community Member
    7 Posts

    Re: Email confirmation of newsletter signup Link to this post

    Hi Tonisch,

    I'm also interested in your solution, could you post your code if you don't mind?

    Thanks in advance!

  • tonisch
    Avatar
    Community Member
    15 Posts

    Re: Email confirmation of newsletter signup Link to this post

    Hi!

    Okay, first thing, i did was creaing a table "MySubscription" containing standard fields like ID, ClassName, Created and with the extra fields firstname, surname, mail and valcode.
    Second, I created a new PageTyp containing a formular where the user can give his Newslettersubscription inserts. After sending the form I created a random ValCode and send it to the user via email. I safed this information in the db.
    Third, I created a second PageTyp where the user could give his valcode (he could also click on the link in the mail and get to this page). After submitting this form I called the "usual" Newsletter Subscription function and added him to our mailing list. I used this just for one Newsletter Types - I could not get it working with different newsletter types.

    This is, what if done. But, my client did not want the feature any more - perhaps I have to get it work again in a few months.
    I hope this answer helps you! If you are interested in the code I wrote just give me a pm / mail...

  • dacar
    Avatar
    Community Member
    168 Posts

    Re: Email confirmation of newsletter signup Link to this post

    hi tonisch, it would be nice to get the code from you :

    Thanks a lot for your help.

    2903 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.