How do I automatically send emails to users after registering on my site? [closed]

1

The question is:
I want the user after registering on the site, to receive an email. I wanted to know how to do it in two ways ..

1st: "Get a link to activate the account."
2 °: "Just receive a message, informing you that it has been registered, and so on ..."

Can anyone help me? I am very grateful right now, and I expect answers.

    
asked by anonymous 03.10.2015 / 14:33

1 answer

0

Friend I will try to help you. BOm follows the steps: 1) in its function of registering the user (create a status (active / inactive) use the function generate a code that can be the name of it or date time with md5 ( md5(var_data) ) 2) register this code in a table linked to the user id 3) create a page responsible for receiving the code and verify which user is and change the status. 4) After registering the user code and user register use the function mail() to send the link of the verification page with an end attribute $ _GET I believe that right

    
07.10.2015 / 03:08