Jump to content

activation e-mail


satant

Recommended Posts

hi i have mafia game i need when the user make register

 

send to him link whith activation link to activate his acc

 

i make the email  but i don't know how to make the link to activation ! ???

 

 /*Begin email her*/
            mail($email,"Frozen fear Signup","

            Hello $name,-

Your account has been made on Frozen Fear

Member Information:

Username        = $name
E-mail          = $email
Password        = $pass1
Home City       = $pick_city1

kindly regards, Admin team Frozen Feart ©


","From: Frozen Fear <[email protected]>") or die ("mail error");
            /*End email her*/

        }
        else
        {
        echo "$error<br><br><a href='?p=register'><strong>Retry</strong></a>";
      }

Link to comment
https://forums.phpfreaks.com/topic/49157-activation-e-mail/
Share on other sites

1- add a field in your database table named 'active' it can be a tinyint or enum

2- set its default value to 0, representing inactive

3- create an activation script that will change the value of this field to 1, meaning active

4- after registration send a link to users email address with some 'id' may be userid or username and this link will be to your activation script

5- once clicked the activation link will bring user to activation script that will validate user on the basis of the id and will activate his registration

Link to comment
https://forums.phpfreaks.com/topic/49157-activation-e-mail/#findComment-241323
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.