this script is not sending an email to my account. here is my code:
PHP Code:<?php
$confirmid = md5(date("Ymd"));
$recipient = "*******";
$from = "admin@*****.com";
$subject = "Account Activation";
$message = "Dear $membername: \n \n" .
"Thank you for joining RapidFriends Social Networking! We are glad you joined. We need you to Activate your account by clicking the link located below. \n\n\n" .
"<a href='confirm.php?id=$confirmid'>Confirm Account</a>\n\n" .
"Note: If link above didnt work, go to http://www.rapidfriends.com/confirm.php, and copy this code into the text box: \n" .
"Confirm Code: $confirmid";
$headers = "To: $membername <$memberemail>\n" .
"From: RapidFriends Admin <$from>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1";
mail('$recipient', '$subject', '$message', '$headers');
if (@mail('$recipient', '$subject', '$message', '$headers')) {
echo('<p>Mail sent successfully.</p>');
} else {
echo('<p>Mail could not be sent.</p>');
}
?>




Reply With Quote