Bug #17322 Updated: mail() fails (501 Syntax Error) under latest CVS
| From: | chris at dvdplaza dot com dot au | Date: | Tue, 21 May 2002 08:39:02 +0000 |
| Subject: | Bug #17322 Updated: mail() fails (501 Syntax Error) under latest CVS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8074@lists.php.net to get a copy of this message | ||
ID: 17322
Updated by: chris@dvdplaza.com.au
Reported By: chris@dvdplaza.com.au
Status: Feedback
Bug Type: Mail related
Operating System: Windows 2000
PHP Version: 4.0CVS-2002-05-20
New Comment:
Forgot to mention that this error 9/10 causes the Apache
child to exit and a new one to spawn and that occasionally
an e-mail does get to its destination.
Now, I made the change you requested and no more errors are
appearing in the error log - HOWEVER it isn't working as
you'd expect. Thus far out of around 30 or so refreshes
I've only ended up with two e-mails plus the Apache child
bombed out a couple of times and respawned.
Previous Comments:
------------------------------------------------------------------------
[2002-05-21 01:52:06] mfischer@php.net
Can you try instead of
From: "DVD
Plaza (Support)" <support@dvdplaza.com.au>
just
From: support@dvdplaza.com.au
?
------------------------------------------------------------------------
[2002-05-20 22:57:55] chris@dvdplaza.com.au
The simplest example would probably be the one below, since the
addresses are all hardcoded (simply an auto-notification for myself)
whereas all other mailings are obviously dynamic:
mail('form@dvdplaza.com.au', 'Invite Issued To ' .
$PlazaUser[username], 'An invite was just produced for: ' .
$PlazaUser[username], 'From: "DVD Plaza (Support)"
<support@dvdplaza.com.au>');
------------------------------------------------------------------------
[2002-05-20 19:09:31] mfischer@php.net
Finally! You're the first who uses the updated win32/mail() code it
seems.
This error response you get seems really bogus. Can you try to cut down
the *exakt* parameters you pass to the mail() function which causes
this error?
------------------------------------------------------------------------
[2002-05-20 19:05:19] chris@dvdplaza.com.au
Since upgrading to the CVS of PHP 4.3 (HAD to - bug #16626 was causing
us chronic chaos and this was the only means to correct it) I am
getting the following error each time a script tries to e-mail:
PHP Warning: mail() SMTP server response: 501 Syntax Error in
parameters or arguments in *SCRIPTNAME* on line xxx
PHP 4.3 is running as an Apache2 module on W2K, only additional module
loaded is GZIP. Never had any e-mail problems before (other than time
stamps on PHP e-mails being incorrect, a long-time known bug).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17322&edit=1