#31676 [Opn->Bgs]: Occured SMTP error if we sent 10 mails with mail() function at the same tim
ID: 31676
Updated by: derick@php.net
Reported By: ysuzuki at zend dot co dot jp
-Status: Open
+Status: Bogus
Bug Type: Mail related
Operating System: Windows 2000
PHP Version: 4.3.10
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2005-01-24 09:31:41] ysuzuki at zend dot co dot jp
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', 'ysuzuki@zend.co.jp');
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 this bug report at http://bugs.php.net/?id=31676&edit=1
Thread (3 messages)