|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-01-24 09:31 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
We also tried the following test by using same script file such as send_mail.php. 1) Launched 10 DOS prompt on Windows 2000 Server 2) Launched send_mail.php on each DOS prompt such as "php.exe send_mail.php" This result was OK. Because All sent E-mails were successful.Therefore, This problem looks like related with PHP + Apache 2, I think.