E-mail Module:Double Opt-in

From ExtractValue Wiki

Jump to: navigation, search

Contents

Objective

Specs v 1.0

Double Opt-in E-mails

Centricity requires a Double Opt In for a User account to be active.

  1. When a User registers, create a database entry in the User table for their double opt-in status: confirm = 0. Make sure there are no duplicate User entries.
  2. The module will then send out an opt-in e-mail using the Kohana module Swiftmaill
    1. Create a unique URL string that, when clicked, will set double opt-in the User (confirm = 1)
      1. On click, check that confirm = 0. If confirm = 1, then display an error message: "You have already confirmed you e-mail. Please login."
      2. If confirm = 0, this URL will also log the User into Centricity
        1. Use the Login Module in our application to perform the login.
        2. Login->Models/Login_BO->login( username, password, portal_id )
    2. If Opt-in is received, the User table will be update to show this is an Opt-in user, no more email ( confirm = 1 )
    3. If Opt-in is not received, then schedule a cron/schedule job to send one e-mail per day asking the user to opt-in.
      1. If a User has not Opt-in for seven days, the account will be marked as in-active ( status = 0 ).
    4. There will be another link which User can Opt-out
      1. If a User click on the opt-out, the account will be marked as in-active ( status = 0 )

Specs v 2.0

  1. If a User opts in, then they must be subscribed to Mailchimp per the specs in E-mail Module:API

Category Tree

Personal tools