Hi PHP guys, for some time I've been modifying the mail() function and absolutely have no clue why it doesn't send an activation link to a user mail. Ok so the code is:
-------------
mysql_query("INSERT INTO usersystem (username, password, email) VALUES ( '$username', '$password', '$email')") or die (mysql_error());
echo "<html><br/><br/>Account created.</html>";
$to = "$email";
$from = "admin@muciooler.net";
$subject = "Complete yourdomain registration";
//Begin HTML Email Message
$message = "Hi $firstname,
If the URL above is not an active link, please copy and paste it into your browser address bar
Login after successful activation using your:
E-mail Address: $email
Password: $password
See you on the site!
admin@musicooler.net";
//end of message
$headers = "From: $from\r\n";
$headers .= "Content-type: text\r\n";
mail($to, $subject, $message, $headers);
$msgToUser = "<h2>One Last Step - Activate through
Email</h2><h4>OK $firstname, one last step to verify your email identity:</h4><br />"
--------------------------------------
Just thanks for any comments!
-------------
mysql_query("INSERT INTO usersystem (username, password, email) VALUES ( '$username', '$password', '$email')") or die (mysql_error());
echo "<html><br/><br/>Account created.</html>";
$to = "$email";
$from = "admin@muciooler.net";
$subject = "Complete yourdomain registration";
//Begin HTML Email Message
$message = "Hi $firstname,
If the URL above is not an active link, please copy and paste it into your browser address bar
Login after successful activation using your:
E-mail Address: $email
Password: $password
See you on the site!
admin@musicooler.net";
//end of message
$headers = "From: $from\r\n";
$headers .= "Content-type: text\r\n";
mail($to, $subject, $message, $headers);
$msgToUser = "<h2>One Last Step - Activate through
Email</h2><h4>OK $firstname, one last step to verify your email identity:</h4><br />"
--------------------------------------
Just thanks for any comments!