I tried that in this format:

if ( mail("[EMAIL PROTECTED]", "Quote Request", $message, "From:
[EMAIL PROTECTED]\nX-Mailer: PHP/" . phpversion()) ) {
        echo "Email sent!";
} else {
        echo "Email NOT sent!";
}

and still get the Email NOT sent and no emails go anywhere.  Is there
another solution?  How about a way to get an error message of some kind?

Ryan

-----Original Message-----
From: Tim Taubert [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 9:09 AM
To: PHP Mailingliste
Subject: RE: [PHP] mail function fails


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]

-- 
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