how can i verify an account by email

the mail() function

Moderators: macek, egami, gesf

yasirzeb
New php-forum User
New php-forum User
Posts: 6
Joined: Thu Jun 21, 2012 3:18 am

how can i verify an account by email

Postby yasirzeb » Mon Jul 02, 2012 1:19 am

:help:

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: how can i verify an account by email

Postby egami » Mon Jul 02, 2012 5:52 am

create a field in the user table called verified.

send an email to end user with a link to a php file on your webserver, using a random string. Put this random string in your user table.. call it.. verifystring.. or something.


then in the php file.. when the link is called..
you do a search with the variables..

the userid, username, emailaddress and verifystring.
if all match..
then mark the verified field with a 1.

And done.

yasirzeb
New php-forum User
New php-forum User
Posts: 6
Joined: Thu Jun 21, 2012 3:18 am

Re: how can i verify an account by email

Postby yasirzeb » Mon Jul 02, 2012 10:19 pm

please explain me with php code that how does it work

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: how can i verify an account by email

Postby egami » Tue Jul 03, 2012 9:22 am

please drop $500.00 USD into my paypal account, and I'll be more than happy to write you some code. Otherwise, google.com. There's plenty of stuff out there; don't expect a free handout if you're not willing to even try it yourself.


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest