mail function fails
| From: | Shrout, Ryan | Date: | Mon, 02 Jul 2001 13:00:37 +0000 |
| Subject: | mail function fails | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55825@lists.php.net to get a copy of this message | ||
I am having a problem with the PHP mail() function. Here is the code:
if (mail ("bsmall@ikmc.com", "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 bsmall@ikmc.com 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