XF 2.1 SMTP does not work

nianxianya

New member
Can someone tell me how to solve this problem..... I don't know if my problem is out there, I can confirm that my smtp settings are accurate and can't send mail... here my error...

  • ErrorException: Email to xxx@minisforum.com failed: [E_WARNING] stream_set_blocking() expects parameter 1 to be resource, null given
  • src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:283
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] str...', '/home/ftp/r/rsw...', 283, Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(283): stream_set_blocking(NULL, 1)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection()
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array)
#4 src/XF/Mail/Mailer.php(274): Swift_Transport_AbstractSmtpTransport->start()
#5 src/XF/Mail/Mail.php(395): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport), NULL, false)
#6 src/XF/Admin/Controller/Tools.php(278): XF\Mail\Mail->send(Object(Swift_SmtpTransport), false)
#7 src/XF/Mvc/Dispatcher.php(321): XF\Admin\Controller\Tools->actionTestEmail(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(245): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'TestEmail', 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}

array(4) {
["url"] => string(27) "/admin.php?tools/test-email"
["referrer"] => string(52) "http://www.xyz.com/admin.php?tools/test-email"
["_GET"] => array(1) {
["tools/test-email"] => string(0) ""
}
["_POST"] => array(2) {
["email"] => string(22) "xxxx@minisforum.com"
["_xfToken"] => string(8) "****"
}
}
 
That error indicates that the socket connection couldn’t be opened for some reason.

This could be because your server firewall blocked it, or something else in the connection details is incorrect.
 
That error indicates that the socket connection couldn’t be opened for some reason.

This could be because your server firewall blocked it, or something else in the connection details is incorrect.
My server firewall has been shut down and my configuration information has been confirmed by others, however. . . Still unable to pass
 
Back
Top Bottom