#17322 [Com]: mail() fails (501 Syntax Error) under latest CVS

From: Date: Wed, 29 Jan 2003 16:26:17 +0000
Subject: #17322 [Com]: mail() fails (501 Syntax Error) under latest CVS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31594@lists.php.net to get a copy of this message
ID: 17322 Comment by: f.touchard@laposte.net Reported By: chris@dvdplaza.com.au Status: No Feedback Bug Type: Mail related Operating System: Windows 2000 PHP Version: 4.0CVS-2002-05-20 New Comment: Using : - W2K Pro SP2 - Apache (version : Apache_1.3.27-win32-x86-no_src) - PHP (version : php-4.3.0-Win32) mail() works fine for me. I tested using different syntax : "something" <name@domain.com> just doesn't work. <name@domain.com> works (but < & > are not usfull at all), so just use : name@domain.com >[21 May 2002 4:49am] mfischer@php.net >First, the From: "DVD >Plaza (Support)" <support@dvdplaza.com.au> syntax isn't >supported on >win32 and never was. Only addresses in the simple form of >foo@bar.com >are supported. Here is a simple exemple that worked for me : function send_mail($from_email, $to_email, $subject, $message) { $header = "MIME-Version: 1.0\r\n"; $header .= "Content-Type: text/plain; charset=iso-8859-1\r\n"; $header .= "From: ".$from_email."\r\n"; $header .= "Reply-To : ".$from_email."\r\n"; $header .= "Return-Path : ".$from_email."\r\n"; $header .= "X-Priority: 1\r\n"; $header .= "X-MSMail-Priority: High\r\n"; $header .= "X-Mailer: PHP4\r\n"; return(mail($to_email, $subject, $message, $header)); } Previous Comments: ------------------------------------------------------------------------ [2002-09-26 19:49:35] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2002-09-11 11:08:53] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-06-02 19:14:41] chris@dvdplaza.com.au What's an MTA? We've since reverted again to PHP 4.2.1, and left it there (with a cookie workaround) as the mail issue was crippling a major promotion we are currently running. We've had no further mail issues - so definitely specific to 4.3 ------------------------------------------------------------------------ [2002-06-02 11:44:19] mfischer@php.net I've gone through the code and I'm unable to reproduce the problem. What kind of MTA are you using? Do you have another, simple example which used to work in < 4.3 ? ------------------------------------------------------------------------ [2002-05-22 21:12:55] chris@dvdplaza.com.au BLOODY COMPUTERS!!! PHP 4.2.1's mail handling is fine as I originally said, the reason I was missing mail yesterday was due to IE on my Mac not refreshing the pages I was constantly reloading. Mail is flowing through just fine and refreshing one of my forms via my PC causes a mail every time. So it's what I originally said - mail fails under PHP 4.3.dev but works under PHP 4.2.1. Sorry for the confusion... argh!!! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17322 -- Edit this bug report at http://bugs.php.net/?id=17322&edit=1

« previous php.bugs (#31594) next »