1. 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

Discussion in 'Troubleshooting and Problems' started by xH3LLRAIZ3Rx, Jan 25, 2015.

  1. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    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) "********"
    }
    }
    
    
     
  2. Mike

    Mike XenForo Developer Staff Member

    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).
     
  3. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    how does one fix it, since im hosting the Website off my own computer for the time being
     
  4. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    it also just said No connection has been established to smtp.gmail.com - library\Zend\Mail\Protocol\Abstract.php:319
     
  5. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    ahh ok so how do I add Gmail's SMTP Server to my Domains DNS Records
     
  6. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

  7. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    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. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    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
     
  9. Mike

    Mike XenForo Developer Staff Member

    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.
     
  10. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    well I don't have a host, im using my Own Computer, unless you mean my ISP
     
  11. Mike

    Mike XenForo Developer Staff Member

    Well this may relate to your network stack or firewall settings then.
     
  12. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    ok, how do I add smtp.gmail.com to my Windows Firewall, or my Modems Firewall
     
  13. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    hmm, when doing a Telnet test, the connection works
     
  14. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    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) "********"
    }
    }
    
     
  15. Tracy Perry

    Tracy Perry Well-Known Member

    I never could get 465 to work. I think I had to use (when I did it) port 587.
     
  16. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    ok i fixed it by changing the WAMP Stack from XAMPP to something else
     

Share This Page