how to make confirmation email?

Discussion in 'PHP' started by whiteblue1942, Apr 20, 2008.

  1. #1
    how do i make it in php so that when people register they have to click an email that i send them before the registration is complete?
     
    whiteblue1942, Apr 20, 2008 IP
  2. CPURules

    CPURules Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use a MySQL database[that has key account info, like username, password, activation key, etc] & the mail() function. If you need help, add me on MSN:
     
    CPURules, Apr 20, 2008 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    if(mail())
    {

    }
    else{}
     
    bartolay13, Apr 20, 2008 IP
  4. Alley Cat

    Alley Cat Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have an activation script which is sent automatically when someone registers as a member of my php site. It is used to verify that the email address they supplied is an address of theirs. It triggers a 32 character activation code on the members table on my database.
     
    Alley Cat, Apr 23, 2008 IP
  5. Sabbir

    Sabbir Banned

    Messages:
    210
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Hi,

    just store some value in databse against the email address.
    Then send this value to user with the url (form get style).

    when the user will click the link, verify is done.
     
    Sabbir, Apr 23, 2008 IP
  6. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #6
    If it were me, in your users table I'd have a column called authcode and activated. When the user signs up, before you email them confirmation, do something like $authcode = md5(rand(43,54353)); and then insert that into the database, and then on the confirm.php page check the email against the authcode and if they're true, set activated to 1
     
    crazyryan, Apr 23, 2008 IP