Jump to content

Auto Emailer Confirmation


enemeth

Recommended Posts

Hi there,

 

I put some php scripts on my website , for registrations , everything works fine , it adds users to the mysql database all good, but it never sends the email to the user so they can confirm there registration and get there password, can someone help me ? here is the code i have for the email :

 

$subject = "Your Membership at The Truth Discovered!";

$message = "Dear $first_name $last_name,

Thank you for registering at our website, http://www.thetruthdiscovered.com!

You are two steps away from logging in and accessing our exclusive members area.

To activate your membership,

please click here: http://www.thetruthdiscovered.com/activate.php?id=$userid&code=$db_password

Once you activate your memebership, you will be able to login

with the following information:

Username: $username

Password: $random_password

Thank You

The Staff

This is an automated response, please do not reply!";

mail($email_address, $subject, $message,

"From: The Truth Discovered Webmaster<[email protected]>n

X-Mailer: PHP/" . phpversion());

echo 'Your membership information has been mailed to your email address!

Please check it and follow the directions!';

 

i get the message from the last echo... but i never recieve the email , anyone know why?

 

Elaine

thx ;)

Link to comment
https://forums.phpfreaks.com/topic/44482-auto-emailer-confirmation/
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.