Getting below errors almost daily. Not sure what's causing it and how to fix.
Code:
Swift_TransportException: Email to soemuser@gmail.com failed: Expected response code 220 but got an empty response src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:447
Generated by: Unknown account Mar 28, 2022 at 12:03 PM
Stack trace
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(360): Swift_Transport_AbstractSmtpTransport->assertResponseCode('', Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(147): Swift_Transport_AbstractSmtpTransport->readGreeting()
#2 src/XF/Mail/Mailer.php(288): Swift_Transport_AbstractSmtpTransport->start()
#3 src/XF/Mail/Queue.php(148): XF\Mail\Mailer->send(Object(Swift_Message), Object(XF\Mail\SmtpTransport), Array)
#4 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(7.99236)
#5 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(7.99236)
#6 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.99236)
#7 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.99236)
#8 job.php(43): XF\Job\Manager->runQueue(false, 8)
#9 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(60) "https://www.talkjesus.com/threads/why-speak-gods-word.73953/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}