XF 2.0 ErrorException: Email to name@myemail.com failed: [E_WARNING] stream_socket_enable_crypto():

BassMan

Well-known member
Suddenly I'm getting this after email sending from my forum:
Code:
Server error log
ErrorException: Email to name@myemail.com failed: [E_WARNING] stream_socket_enable_crypto(): Peer certificate CN=`myHost' did not match expected CN=`smtp.sparkpostmail.com' src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:94
Generated by: 
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] str...', '/home/.../p...', 94, Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(94): stream_socket_enable_crypto(Resource id #202, true, 9)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(313): Swift_Transport_StreamBuffer->startTLS()
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(118): Swift_Transport_EsmtpTransport->_doHeloCommand()
#4 src/XF/Mail/Mailer.php(276): Swift_Transport_AbstractSmtpTransport->start()
#5 src/XF/Mail/Mail.php(335): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport))
#6 src/XF/Service/Contact.php(144): XF\Mail\Mail->send()
#7 src/XF/Pub/Controller/Misc.php(78): XF\Service\Contact->send()
#8 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Misc->actionContact(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Misc', 'Contact', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Misc), NULL)
#10 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}

I didn't change any settings. What is the problem? Emails are not working for any of my board.
 
I did ask, but that answer was there is no need for that. They are working on it now, testing what error it shows and I hope they find a solution soon because I need to use the default email method, which is not good for my main forum.
 
Back
Top Bottom