Re: possible mail() bug
| From: | Manuel Lemos | Date: | Wed, 12 Feb 2003 07:30:37 +0000 |
| Subject: | Re: possible mail() bug | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135277@lists.php.net to get a copy of this message | ||
Hello,
On 02/11/2003 07:49 PM, Matt Phillips wrote:
I created a script that sent the contents of the form via the mail(). when I created it the server was running PHP 4.1.2. The server I am on was upgraded to ver 4.2.2. When that happend the script stop working correctly. It appeared to work, but the email never arrived. So, I wrote a simple script that looked that this: <? if(mail('mphillips@lufkin.org','Testing','testinging 123')); echo "sent" ?> it would always show sent, but the message never arrived. My orginal script used PEAR, but since PEAR uses the mail() I think that this is problem.Probably your server is not configured to send the message properly. You may want to try this class that provides alternative means to send messages like using the sendmail program directly, qmail or SMTP instead of using the mail() function. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos