XF 2.0 Swift_TransportException error

Flagy_

Active member
Hey,
I am receiving this error almost every time and I really do not know why is this. If anyone can help me as fast as you can, it would be really appreciated.​
Code:
Swift_TransportException: Email to <email> failed: Connection could not be established with host smtp.pepipost.com [Connection refused #111] src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:268
Generated by: Unknown account May 7, 2018 at 8:02 PM
Stack trace
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection()
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array)
#2 src/XF/Mail/Mailer.php(276): Swift_Transport_AbstractSmtpTransport->start()
#3 src/XF/Mail/Queue.php(65): XF\Mail\Mailer->send(Object(Swift_Message))
#4 src/XF/Job/MailQueue.php(11): XF\Mail\Queue->run(7.9999978542328)
#5 src/XF/Job/Manager.php(241): XF\Job\MailQueue->run(7.9999978542328)
#6 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999978542328)
#7 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9999978542328)
#8 job.php(15): XF\Job\Manager->runQueue(false, 8)
#9 {main}
Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(59) "https://example.com/threads/your-favorite-line.42846/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

Tracy Perry

Well-known member
I just went through similar (using SMTP) after setting up MailCow for my domain emails. This was with XenForo 1.5 though, but what it ended up being was the login credentials (specifically for my bounce settings) were not correct on the port and TLS/SSL configuration. It's something to double check as the ports I had originally set worked from my phone, but did NOT work from the script.
 

Flagy_

Active member
I have fixed them by changing the ports to 2525. Before I had 25 or 587 and didn't work. Since I changed to 2525 it does send the emails without any errors.
 
Top