mail not working?!!
Posted: Sat Mar 24, 2007 12:18 am
hi,
I have a simple script as below, trying to check mail() function of PHP.BUt the script says mail has sent, while its not sending the mail actually.
I have a simple script as below, trying to check mail() function of PHP.BUt the script says mail has sent, while its not sending the mail actually.
Code: Select all
$uName='sam';
$to = "2saumyaray@gmail.com";
$from = 'what';
$subject = "site feed back";
$message = 'message';
$headers = "From: $from\r\n";
$success = mail($to, $subject, $message, $headers);
if ($success)
echo('msg=Your message has been sent successfully.');
else
echo "msg=An error occurred when sending the email.";