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:56:47 +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-8076@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:
We've beeen using the mail command in that fashion without
problem since 4.0.6??? This is the first time I've had to
touch the mail commands?!?!? It was working fine under
4.2.1, problem only started the second I upgraded to php
4.3.dev (which was purely for the cookie fix).
Previous Comments:
------------------------------------------------------------------------
[2002-05-21 04:49:54] 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.
Cay you try to revert to 4.2.1 and see if all emails get through at
least ? But be aware that you need to use the ini setting
"sendmail_from" in 4.2.1, From: in the header isn't support in this
release.
------------------------------------------------------------------------
[2002-05-21 04:39:01] chris@dvdplaza.com.au
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.
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
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