XF 1.5 Using gmail as XenForo Email.

WeCraft

Member
Hello,

I'm trying to set my gmail account as the XenForo email (On XenForo Email Options). This is the configuration I have:

fe2f56dbc6014be9b7b46366e016a083.png


And this is the error I've got. How can I fix this issue?

Code:
Server Error Log

Error Info
Zend_Mail_Protocol_Exception: Email to dgarciag97@gmail.com failed: Connection timed out - library/Zend/Mail/Protocol/Abstract.php:277
Generated By: Unknown Account, 3 minutes ago
Stack Trace
#0 /var/www/html/library/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.gmai...')
#1 /var/www/html/library/Zend/Mail/Transport/Smtp.php(216): Zend_Mail_Protocol_Smtp->connect()
#2 /var/www/html/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /var/www/html/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /var/www/html/library/XenForo/Mail.php(175): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 /var/www/html/library/XenForo/Mail.php(152): XenForo_Mail->sendMail(Object(Zend_Mail))
#6 /var/www/html/library/XenForo/Model/UserConfirmation.php(241): XenForo_Mail->send('dgarciag97@gmai...', 'MetalGearDaner')
#7 /var/www/html/library/XenForo/ControllerPublic/LostPassword.php(84): XenForo_Model_UserConfirmation->sendPasswordResetRequest(Array)
#8 /var/www/html/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_LostPassword->actionLost()
#9 /var/www/html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /var/www/html/index.php(13): XenForo_FrontController->run()
#11 {main}

Request State

array(3) {
  ["url"] => string(45) "https://gamek.es/index.php?lost-password/lost"
  ["_GET"] => array(1) {
    ["lost-password/lost"] => string(0) ""
  }
  ["_POST"] => array(4) {
    ["username_email"] => string(20) "dgarciag97@gmail.com"
    ["recaptcha_challenge_field"] => string(292) "03AHJ_Vuv6uSeUSH7UTCzHxDXdcHhi2-gpwSrUiPxGCC5fc7tQFtO2mtHhZtsopPIqcmUvcZozBNrgq8vSS1JTJ5nqPtKBp6kY9VcboC850igrJQRC8ZZFx3UPe3ks3qezar3is8OcwiLGwOkCC1_5H-7BjHDaPIjBBtaqU2BANHXUMZJzHusNpqkkvytFCSgYFOhAz_eZ_ZOA_pt2ELeqo9HFfBYCUdlrztgWjuo8Q1SsvK-85gCovryEjbvQ2vA-gnpO5WtJrbUiaRTgjf1IlhcSPzYDpVo35w"
    ["recaptcha_response_field"] => string(4) "1120"
    ["_xfToken"] => string(8) "********"
  }
}
 
Why you don't choose "Default" in "Email Transport Method"? I'm using it and for years there was no problem about sending emails.
Setting it to default, throws this error:

Code:
Zend_Mail_Transport_Exception: Email to dgarciag97@gmail.com failed: Unable to send mail. - library/Zend/Mail/Transport/Sendmail.php:137
Generated By: Unknown Account, A moment ago
Stack Trace
#0 /var/www/html/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /var/www/html/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /var/www/html/library/XenForo/Mail.php(175): Zend_Mail->send(Object(Zend_Mail_Transport_Sendmail))
#3 /var/www/html/library/XenForo/Mail.php(152): XenForo_Mail->sendMail(Object(Zend_Mail))
#4 /var/www/html/library/XenForo/Model/UserConfirmation.php(241): XenForo_Mail->send('dgarciag97@gmai...', 'MetalGearDaner')
#5 /var/www/html/library/XenForo/ControllerPublic/LostPassword.php(84): XenForo_Model_UserConfirmation->sendPasswordResetRequest(Array)
#6 /var/www/html/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_LostPassword->actionLost()
#7 /var/www/html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /var/www/html/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
  ["url"] => string(45) "https://gamek.es/index.php?lost-password/lost"
  ["_GET"] => array(1) {
    ["lost-password/lost"] => string(0) ""
  }
  ["_POST"] => array(4) {
    ["username_email"] => string(20) "dgarciag97@gmail.com"
    ["recaptcha_challenge_field"] => string(249) "03AHJ_Vut0cie-FBnlygB-IC6IReXbiAyf4liU9rhFoIrF4dXxoWm2mW1lspph1Ug-LnTfkodAUBnyuXmDfE8PjwXnzEpHHp5L3ZH1JgvdwxNJTWrvDi2pO_MeArzPyem2P-jfN3i0o2DTukauFFBT2VDs1bgWM0QJ1ZmcDFpV_P_pz3XOmGM1FLKg6CMW3nlk_PirMqkQreFvqlqiro3-SKtcVfxNt9SjRZO0bpc3dST42vbzbsaZf7c"
    ["recaptcha_response_field"] => string(3) "429"
    ["_xfToken"] => string(8) "********"
  }
}
 
Top Bottom