• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Issue with Sending Emails

#1
I just bought a Domain name off of Go Daddy, and now im getting a issue with the Google SMTP,

my settings are:

Email Transport Method:
SMTP:
smtp.gmail.com 465

Authentication:
Username and Password (both I double checked to make sure it was all right)

Encryption:
SSL
and here is my Error Log: (I REDACTED any Information that I don't want sharing which is mainly my Domain and Email)

Code:
Error Info

Zend_Mail_Protocol_Exception: Email to REDACTED failed: Could not open socket - library\Zend\Mail\Protocol\Abstract.php:277

Stack Trace

#0 C:\xampp\htdocs\library\Zend\Mail\Protocol\Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.gmai...')
#1 C:\xampp\htdocs\library\Zend\Mail\Transport\Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
#2 C:\xampp\htdocs\library\Zend\Mail\Transport\Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 C:\xampp\htdocs\library\Zend\Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 C:\xampp\htdocs\library\XenForo\ControllerAdmin\User.php(1145): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 C:\xampp\htdocs\library\XenForo\ControllerAdmin\User.php(1050): XenForo_ControllerAdmin_User->_sendEmail(Array, Array, Object(Zend_Mail_Transport_Smtp))
#6 C:\xampp\htdocs\library\XenForo\FrontController.php(347): XenForo_ControllerAdmin_User->actionEmailSend()
#7 C:\xampp\htdocs\library\XenForo\FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 C:\xampp\htdocs\admin.php(13): XenForo_FrontController->run()
#9 {main}

Request State

array(3) {
["url"] => string(52) "http://REDACTED.net/admin.php?users/email-send"
["_GET"] => array(1) {
["users/email-send"] => string(0) ""
}
["_POST"] => array(9) {
["criteria"] => string(94) "{"receive_admin_email":"1","username":"xH3LLRAIZ3Rx","user_state":["valid"],"is_banned":["0"]}"
["total"] => string(1) "1"
["from_name"] => string(22) "Support"
["from_email"] => string(27) "REDACTED"
["email_title"] => string(6) "wsfdvc"
["email_format"] => string(4) "text"
["email_body"] => string(5) "fsvcz"
["_xfConfirm"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}
 

Mike

XenForo developer
Staff member
#2
This would imply that your server itself had problems opening the connection. There seems to be an implication that this is DNS related (specifically DNS failing to resolve).
 
#7
which im pretty sure is for Google Apps maybe, but I don't want to pay for Google Apps Mail system, so I wonder what the mx records are for smtp.gmail.com
 
#8
ok so I did a MX Lookup for gmail, and added these to my MX Records on my Domains DNS:

gmail-smtp-in.l.google.com (Weight: 5)
alt1.gmail-smtp-in.l.google.com (Weight: 10)
alt2.gmail-smtp-in.l.google.com (Weight: 20)
alt3.gmail-smtp-in.l.google.com (Weight: 30)
alt4.gmail-smtp-in.l.google.com (Weight: 40)

so we will see if that fixed the problem
 

Mike

XenForo developer
Staff member
#9
These are network level issues with your server itself, not the DNS for your domain (or Gmail's). You'll need to contact your host to see if they can resolve it; there's nothing that can be done within XenForo.
 
#14
ok now I tried changing the settings to:

smtp.googlemail.com 25
my Gmail user and password
TLS

and im getting this error:

Code:
ErrorException: Email to REDACTED@gmail.com failed: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed - library\Zend\Mail\Protocol\Smtp.php:206

Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'stream_socket_e...', 'C:\\xampp\\htdocs...', 206, Array)
#1 C:\xampp\htdocs\library\Zend\Mail\Protocol\Smtp.php(206): stream_socket_enable_crypto(Resource id #131, true, 57)
#2 C:\xampp\htdocs\library\Zend\Mail\Transport\Smtp.php(200): Zend_Mail_Protocol_Smtp->helo('localhost')
#3 C:\xampp\htdocs\library\Zend\Mail\Transport\Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#4 C:\xampp\htdocs\library\Zend\Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#5 C:\xampp\htdocs\library\XenForo\ControllerAdmin\User.php(1145): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#6 C:\xampp\htdocs\library\XenForo\ControllerAdmin\User.php(1050): XenForo_ControllerAdmin_User->_sendEmail(Array, Array, Object(Zend_Mail_Transport_Smtp))
#7 C:\xampp\htdocs\library\XenForo\FrontController.php(347): XenForo_ControllerAdmin_User->actionEmailSend()
#8 C:\xampp\htdocs\library\XenForo\FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 C:\xampp\htdocs\admin.php(13): XenForo_FrontController->run()
#10 {main}
Request State
array(3) {
["url"] => string(52) "http://REDACTED.net/admin.php?users/email-send"
["_GET"] => array(1) {
["users/email-send"] => string(0) ""
}
["_POST"] => array(9) {
["criteria"] => string(94) "{"receive_admin_email":"1","username":"xH3LLRAIZ3Rx","user_state":["valid"],"is_banned":["0"]}"
["total"] => string(1) "1"
["from_name"] => string(22) "Support"
["from_email"] => string(27) "REDACTED@gmail.com"
["email_title"] => string(6) "sdfvcz"
["email_format"] => string(4) "text"
["email_body"] => string(5) "sdczx"
["_xfConfirm"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}