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!";
echo "Mail could not be sent...";
Every time I run this script, I receive "Mail could not be sent..."
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]