hey ryan try something like this
mail("[EMAIL PROTECTED]", "Quote Request", $message, "From:
[EMAIL PROTECTED]\nX-Mailer: PHP/" . phpversion());
hope this helps
cya tim
---------------------------------------------------------------------
Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.com/rg/
---------------------------------------------------------------------
-----Original Message-----
From: Shrout, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:01 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] mail function fails
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]
--
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]