XF 2.1 Server error log: Unable to send mail. src/XF/Mail/Mailer.php:295

Danny Fyne

Member
I'm using my own mail server and have no problem sending emails when it comes to registrations etc. However, when I try to do a mass mailing, apart from the test email which sends OK, when I send the mailing, it says the emails were sent OK but when I check the Server Error Log, all the emails have not been sent with the following error:

  • Swift_TransportException: Email to xxx@xxxxxx.com failed: Unable to send mail. [*] [*]src/XF/Mail/Mailer.php:295 [*]Generated by: [URL='https://xxxxx.co/crewroom/admin.php?users/danny.1/edit']danny[/URL] [*] [*]Feb 27, 2020 at 6:45 PM [/LIST] [SIZE=5][B]Stack trace[/B][/SIZE] #0 src/XF/Mail/Mail.php(395): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport), NULL, true) #1 src/XF/Job/UserEmail.php(72): XF\Mail\Mail->send() #2 src/XF/Job/AbstractUserCriteriaJob.php(59): XF\Job\UserEmail->executeAction(Object(xenMade\LAU\XF\Entity\User)) #3 src/XF/Job/Manager.php(253): XF\Job\AbstractUserCriteriaJob->run(G) #4 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G) #5 src/XF/Job/Manager.php(111): XF\Job\Manager->runJobEntry(Array, G) #6 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8) #7 src/XF/Mvc/Dispatcher.php(321): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag)) #8 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL) #9 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL) #10 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #11 src/XF/App.php(2177): XF\Mvc\Dispatcher->run() #12 src/XF.php(390): XF\App->run() #13 admin.php(13): XF::runApp('XF\\Admin\\App') #14 {main} [SIZE=5][B]Request state[/B][/SIZE] array(4) { ["url"] => string(33) "/crewroom/admin.php?tools/run-job" ["referrer"] => string(152) "https://xxxxxx.co/crewroom/admin.php?tools/run-job&only_ids=64&_xfRedirect=https%3A%2F%2Fxxxxx.co%2Fcrewroom%2Fadmin.php%3Fusers%2Femail%26sent%3D2" ["_GET"] => array(1) { ["tools/run-job"] => string(0) "" } ["_POST"] => array(3) { ["_xfRedirect"] => string(57) "https://xxxxxxx.co/crewroom/admin.php?users/email&sent=2" ["_xfToken"] => string(8) "********" ["only_ids"] => string(2) "64" } }
This happens whether I use my own smtp server or the default in XenForo and both in plain text or html format. As I said, the test email works fine and all other email functions are OK when tested. It is only when mass mailing.

Any ideas?
 
Just to add... Since I tried to run themes mailing, the email system has stopped working and all emails sent by the system are showing the same error in log and nothing sent.
 
Top Bottom