A general framework to allow the user to register with an e-mail and maybe some optional data to a double opt-in thing.
Flow:
User comes sees a form to type in the e-mail and a button to press.
Once the button is pressed a simple e-mail validation is done in the client side. If that passes the request is sent to the server.
This generates a random authorization code, adds the user to the database table (mapped from a hidden value in the form),
send an e-mail with a pre-defined text to the email address and redirect the user to another page.
the user receives the e-mail with a link. When that link is clicked the user gets to a page on the server that automatically confirms the subscription in the database, send another pre-defined e-mail message to the user and shows a thank-you page to the user. This thank you page can include further questions specific to the application.
A general framework to allow the user to register with an e-mail and maybe some optional data to a double opt-in thing.
Flow:
sample applications: