Mail() Not working
| From: | Kevin J . Maynard | Date: | Wed, 12 Dec 2001 04:18:26 +0000 |
| Subject: | Mail() Not working | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14952@lists.php.net to get a copy of this message | ||
I have been unable to get the mail() function to work.
my php.ini file has the following line in it:
SMTP = mail.attbi.com
my php script is as follows:
<?
$email = "to_email";
$from = "from_email";
$mesg = "This is a test email. \r\n";
if (mail($email, "Test", $mesg, $from))
echo "Mail Sent!";
else
echo "Mail could not be sent...";
?>
Every time I run this script, I receive "Mail could not be sent..."
Any thoughts?