XF 2.0 Send email problem

domfootwear

Member
Dear All,

Please kindly show me the way to solve my problem as below:

  • Swift_TransportException: Email to *****@*****.com failed: Connection could not be established with host smtp.gmail.com [Connection timed out #110]
  • src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:268

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/Mail.php(335): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport))
#4 src/XF/Service/User/AbstractConfirmationService.php(85): XF\Mail\Mail->send()
#5 src/XF/Service/User/AbstractConfirmationService.php(63): XF\Service\User\AbstractConfirmationService->sendConfirmationEmail()
#6 src/XF/ControllerPlugin/EmailConfirmation.php(43): XF\Service\User\AbstractConfirmationService->triggerConfirmation()
#7 src/XF/Pub/Controller/AccountConfirmation.php(45): XF\ControllerPlugin\EmailConfirmation->actionResend(Object(XFRM\XF\Entity\User), '/diendan/accoun...', Array)
#8 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\AccountConfirmation->actionResend(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:AccountConfi...', 'Resend', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\AccountConfirmation), NULL)
#10 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}

Request State
array(4) {
["url"] => string(36) "/diendan/account-confirmation/resend"
["referrer"] => string(44) "http://www.giaiphapexcel.com/diendan/forums/"
["_GET"] => array(0) {
}
["_POST"] => array(6) {
["captcha_question_answer"] => string(1) "7"
["captcha_question_hash"] => string(40) "7a33ff23d8cd0d8cc759c117eb9430730deb9d0e"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(16) "/diendan/forums/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Top Bottom