Hi All ,
I wish to have email verification process: I mean, once 'user' is registered is getting email verification with username and password and so on.
Want to have and run on localhost for testing purposes.
$youremail = 'email';
$subject = "You have successfully registered at $yoursite...";
$message = "Dear $firstname, you are now registered at our web site.
To login, simply go to our web page and enter in the following details in the login form:
Please print this information out and store it for future reference.
mail($email, $subject, $message, "From: $firstname <$email>\nX-Mailer:PHP/" . phpversion());
echo "Your information has been mailed to your email address.";
Now , I have enabled windows xp smtp server.Set my ip address and is running away.
smtp_server=smtp.gmail.com - or this should be localhost?
; smtp port (normally 25)
sendmail_from = email@example.com
Once user registered getting the good all knowing error:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Apache2.2\htdocs\register_check.php on line 77
Have spend all day , trying different things.. no luck..Thanks.