E-mail confirmation

Discussion in 'Web Development' started by joy1986joy, Dec 13, 2010.

  1. joy1986joy

    joy1986joy New Member

    Joined:
    Nov 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    Can any one suggest me how to make the confirmation mail by PHP. Where the users who are new, after registering they will get a mail with a link by which the account will activated.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    What is your issue? Is it sending the email or the problem is with the logic of how you should be writing the code for activating accounts?
     
  3. joy1986joy

    joy1986joy New Member

    Joined:
    Nov 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    I have issue with the logic of how should I write the code.
     
  4. dhirendra.gvt

    dhirendra.gvt Banned

    Joined:
    Nov 22, 2010
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    SEO
    Location:
    Delhi
    Home Page:
    http://www.websitepromotionsdesigning.com/
    Hi Joy,

    I do not have exact code, but I have an idea of how to do it.

    1. Someone registers.
    2. You create an email in your script that sends a link inside the email, with the session id included in the url. Also, insert the username, password, session id, and other user info into a database.
    3. User clicks link. It takes him to a page, E.G. index.php?id=3249782skldf234lasdf. In the index.php page, you have a $_GET['id']. You query the database for a session id exactly the same as your $_GET['id']. If there is a match, finish registering the user.

    Sorry that I do not have an example, but I think that may help you understand the basic idea.

    Thanks
     
  5. joy1986joy

    joy1986joy New Member

    Joined:
    Nov 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    Hi
    I think I know the logic. But Its creating difficulties for implementation. :(
     
  6. dhirendra.gvt

    dhirendra.gvt Banned

    Joined:
    Nov 22, 2010
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    SEO
    Location:
    Delhi
    Home Page:
    http://www.websitepromotionsdesigning.com/
    Hi
    I think you should talk to person who have experience about related your quires.
     
  7. joy1986joy

    joy1986joy New Member

    Joined:
    Nov 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    To find that person I have posted it hear, I think......... :)
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I am not sure what issues you are having.

    You should have something like a database field where it says unconfirmed / confirmed and then when user clicks the email link that field value changes.

    Is this the problem you are having?
     
  9. dhirendra.gvt

    dhirendra.gvt Banned

    Joined:
    Nov 22, 2010
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    SEO
    Location:
    Delhi
    Home Page:
    http://www.websitepromotionsdesigning.com/
    I am also not sure what have you Issue actually.

    I think you should go through Google & Wikipedia and find the problem which is you have.
     
  10. livin2011

    livin2011 Banned

    Joined:
    Jan 11, 2011
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    web designer
    Location:
    New Delhi
    Home Page:
    http://www.goatour.org
    thanks for this nice information....
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice