E-mail confirmation

joy1986joy's Avatar, Join Date: Nov 2010
Contributor
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.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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?
0
joy1986joy's Avatar, Join Date: Nov 2010
Contributor
I have issue with the logic of how should I write the code.
0
dhirendra.gvt's Avatar
Banned
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
0
joy1986joy's Avatar, Join Date: Nov 2010
Contributor
Hi
I think I know the logic. But Its creating difficulties for implementation.
0
dhirendra.gvt's Avatar
Banned
Hi
I think you should talk to person who have experience about related your quires.
0
joy1986joy's Avatar, Join Date: Nov 2010
Contributor
To find that person I have posted it hear, I think.........
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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?
0
dhirendra.gvt's Avatar
Banned
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.
0
livin2011's Avatar
Banned
thanks for this nice information....