I am having a problem with the PHP mail() function.  Here is the code:

if (mail ("[EMAIL PROTECTED]", "Quote Request",  $message)) {
        echo "Email sent!";
} else {
        echo "Email NOT sent!";
}

Everytime, I receive the Email NOT sent message and the email isn't sent.
However, from the console on the same machine, I can run the mail command:
mail [EMAIL PROTECTED] and send an email just fine.

Any ideas as to what could be wrong?

I am using the latest PHP version and am running Red Hat Linux 7.1

Ryan Shrout

-- 
PHP General 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]

Reply via email to