How do I automatically send emails to users after they sign up for my website?

Asked

Viewed 475 times

1

The doubt is as follows:
I want the user to receive an email after registering on the site. I wanted to know how to do two ways..

1°: "Receive a link to activate the account."
2°: "Received only one message, stating that it was registered, and etc.."

Could someone help me? I am very grateful from now on, and I expect answers.

  • Have you tested anything? Do you have any database or data structure?

  • Sergio, no. I don’t have anything ready, I just want to know how it works, or how to do..

  • 1

    The question is a bit wide but I can give you a way.. To send emails you use the function mail() you can read about it in php.net or by searching. For you to keep sending emails you will first have to have a database containing the emails of these users, an administrative page for you to write the content and send the emails in bulk.. Sorry not orient all the points, it is broad as I said, because it involves several things..

  • Thank you Elaine, I’m going to do some research, I thank you in advance! Hugs.

1 answer

0

Friend I will try to help you. Good follows the steps : 1) in its function to register the user (create a status(active/inactive) use the function generates a code that can be its name or date 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 check which user it is from and change the status. 4) after registering the user’s code and registration use the function mail() to send the link of the check page with at the end an attribute $_GET I believe that for certain

  • Haha, thank you Augusto!! I will try, thanks.

  • You are welcome to .... If you make a mistake you can talk about it

Browser other questions tagged

You are not signed in. Login or sign up in order to post.