ID: 17322 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Mail related Operating System: Windows 2000 PHP Version: 4.0CVS-2002-05-20 New Comment:
First, the From: "DVD Plaza (Support)" <[EMAIL PROTECTED]> syntax isn't supported on win32 and never was. Only addresses in the simple form of [EMAIL PROTECTED] 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. Previous Comments: ------------------------------------------------------------------------ [2002-05-21 04:39:01] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] Can you try instead of From: "DVD Plaza (Support)" <[EMAIL PROTECTED]> just From: [EMAIL PROTECTED] ? ------------------------------------------------------------------------ [2002-05-20 22:57:55] [EMAIL PROTECTED] 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('[EMAIL PROTECTED]', 'Invite Issued To ' . $PlazaUser[username], 'An invite was just produced for: ' . $PlazaUser[username], 'From: "DVD Plaza (Support)" <[EMAIL PROTECTED]>'); ------------------------------------------------------------------------ [2002-05-20 19:09:31] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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