Re: I cannot use mail() ?!?

From: Date: Thu, 01 Aug 2002 00:45:23 +0000
Subject: Re: I cannot use mail() ?!?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110597@lists.php.net to get a copy of this message
Hello, On 07/31/2002 04:17 PM, Aaron Paxson wrote:
I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2. My email server is Exchange 5.5sp3 SMTP is set correctly in my php.ini file, and have restarted Apache. However, I still cannot send out a simple text email: <?php mail("name@mydomain.com","Test","This is a test message"); ?> The function returns true, but no delivery is made. In looking in my Exchange Queues, I do not see any sign of an email going through. However, using an email client in KDE, email is sent just fine through SMTP. Did I miss something?
mail() function has a very long track record for being buggy, especially under Windows were the PHP SMTP client code in used by mail() has to be used. I lot of people has overcame their mail problems using this SMTP client class that I recommend. If you still have delivery problems, you can still enable debug mode and see what the SMTP dialog shows. http://www.phpclasses.org/smtpclass This class is better used in conjunction with this for composing and sending MIME formatted messages: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos

« previous php.general (#110597) next »