Garri83
Проверенные
- Сообщения
- 1,024
- Реакции
- 205
- Баллы
- 11,065
Пробую отправить массово письма выдает сначала таки ошибки:
А потом массово такую ошибку:
Подскажите как настроить отправку писем?
Код:
Swift_TransportException: Email to ******@yandex.ru failed: Expected response code 250 but got code "421", with message "421 too many messages in this connection "
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383
Трассировка стека
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode('421 too many me...', Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('MAIL FROM:<boun...', Array, Array)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(346): Swift_Transport_EsmtpTransport->executeCommand('MAIL FROM:<boun...', Array)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(416): Swift_Transport_EsmtpTransport->_doMailFromCommand('[email protected]...')
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(444): Swift_Transport_AbstractSmtpTransport->_doMailTransaction(Object(Swift_Message), '[email protected]...', Array, Array)
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(176): Swift_Transport_AbstractSmtpTransport->_sendTo(Object(Swift_Message), '[email protected]...', Array, Array)
#6 src/XF/Mail/Mailer.php(289): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#7 src/XF/Mail/Mail.php(347): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport))
#8 src/XF/Job/UserEmail.php(69): XF\Mail\Mail->send()
#9 src/XF/Job/AbstractUserCriteriaJob.php(59): XF\Job\UserEmail->executeAction(Object(ThemeHouse\Donate\XF\Entity\User))
#10 src/XF/Job/Manager.php(241): XF\Job\AbstractUserCriteriaJob->run(G)
#11 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, G)
#12 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, G)
#13 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#14 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', 'html', Object(XF\Mvc\ParameterBag), 'tools', Object(Truonglv\ImageOptimizer\XF\Admin\Controller\Tools), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#18 src/XF.php(333): XF\App->run()
#19 admin.php(13): XF::runApp('XF\\Admin\\App')
#20 {main}
Содержимое запроса
array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(41) "/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(50) "/admin.php?users/email&sent=10404"
["_xfToken"] => string(8) "********"
["only_ids"] => string(4) "7538"
}
}
А потом массово такую ошибку:
Код:
ErrorException: Email to *******@yandex.ru failed: [E_NOTICE] fwrite(): send of 6660 bytes failed with errno=32 Broken pipe
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:240
Трассировка стека
#0 [internal function]: XF::handlePhpError(8, '[E_NOTICE] fwri...', '/site.r...', 240, Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(240): fwrite(Resource id #191, 'MAIL FROM:<boun...')
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/AbstractFilterableInputStream.php(173): Swift_Transport_StreamBuffer->_commit('MAIL FROM:<boun...')
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/AbstractFilterableInputStream.php(92): Swift_ByteStream_AbstractFilterableInputStream->_doWrite('MAIL FROM:<boun...')
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(276): Swift_ByteStream_AbstractFilterableInputStream->write('MAIL FROM:<boun...')
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('MAIL FROM:<boun...', Array, Array)
#6 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(346): Swift_Transport_EsmtpTransport->executeCommand('MAIL FROM:<boun...', Array)
#7 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(416): Swift_Transport_EsmtpTransport->_doMailFromCommand('[email protected]...')
#8 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(444): Swift_Transport_AbstractSmtpTransport->_doMailTransaction(Object(Swift_Message), '[email protected]...', Array, Array)
#9 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(176): Swift_Transport_AbstractSmtpTransport->_sendTo(Object(Swift_Message), '[email protected]...', Array, Array)
#10 src/XF/Mail/Mailer.php(289): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#11 src/XF/Mail/Mail.php(347): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport))
#12 src/XF/Job/UserEmail.php(69): XF\Mail\Mail->send()
#13 src/XF/Job/AbstractUserCriteriaJob.php(59): XF\Job\UserEmail->executeAction(Object(ThemeHouse\Donate\XF\Entity\User))
#14 src/XF/Job/Manager.php(241): XF\Job\AbstractUserCriteriaJob->run(G)
#15 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, G)
#16 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, G)
#17 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#18 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#19 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', 'html', Object(XF\Mvc\ParameterBag), 'tools', Object(Truonglv\ImageOptimizer\XF\Admin\Controller\Tools), NULL)
#20 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#21 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#22 src/XF.php(333): XF\App->run()
#23 admin.php(13): XF::runApp('XF\\Admin\\App')
#24 {main}
Содержимое запроса
array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(41) "/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(50) "/admin.php?users/email&sent=10404"
["_xfToken"] => string(8) "********"
["only_ids"] => string(4) "7538"
}
}
Подскажите как настроить отправку писем?
Последнее редактирование: