From: ysuzuki at zend dot co dot jp Operating system: Windows 2000 PHP version: 4.3.10 PHP Bug Type: Mail related Bug description: Occured SMTP error if we sent 10 mails with mail() function at the same tim
Description: ------------ When we tried to sent 10 mails at the same time by using mail function(), Some mails were occurred SMTP 503 error such as Actual result portion.Please see the following "Actual result". How to reproduce: 1)Launched your Web browser 2)Access send_mail.php script Repeat access send_mail.php by clicking reload button on Web browser Reproduce code: --------------- <?php define('MAIL_ADDER', '[EMAIL PROTECTED]'); define('MAIL_SEND_COUNT', 1); header('Content-type: text/plain'); //Send Mail for ($i = 0; $i <= MAIL_SEND_COUNT; $i++) { if (mail(MAIL_ADDER, "TEST MAIL $i", 'This is test Mail')) { echo "OK\n"; } else { echo "BAT\n"; } } ?> Expected result: ---------------- All send requested E-mail were successful by using mail() function even it was many requested from Web browser. Actual result: -------------- Error Message: [18-Jan-2005 09:18:23] PHP Warning: mail() [<a href='http://example.com/function.mail'>function.mail</a>]: Failed to connect to mailserver at "smtp.example.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in \\exampleserver\send_mail.php line xxx [18-Jan-2005 09:18:23] PHP Warning: mail() [<a href='http://example.com/function.mail'>function.mail</a>]: SMTP server response: 503 Sender already specified in \\exampleserver\send_mail.php on line xxx -- Edit bug report at http://bugs.php.net/?id=31676&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31676&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31676&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31676&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31676&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31676&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31676&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31676&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31676&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31676&r=support Expected behavior: http://bugs.php.net/fix.php?id=31676&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31676&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31676&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31676&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31676&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31676&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31676&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31676&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31676&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31676&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31676&r=mysqlcfg