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

XF 1.1 Another Mail Thread (Cannot Send)

Discussion in 'XenForo Questions and Support' started by taylor_smith, Jan 4, 2013.

  1. taylor_smith

    taylor_smith Well-Known Member

    XF isn't sending mail--not for conversations, not via the contact forum, etc. I SSH'd to the server and the sendmail function seems to work fine. When I test the contact form using the default Email Settings, the form is submitted successfully, but no mail ever arrives. Don't want to rebuild master data, because I've made lots of template edits.

    Separately, I have also tried using Gmail's SMTP, but get this error:

    Error Info
    Zend_Mail_Protocol_Exception: Connection timed out - library/Zend/Mail/Protocol/Abstract.php:277
    Generated By: admin, 3 minutes ago
    Stack Trace
    #0 /home/[directory]/public_html/[site]/library/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.gmai...')
    #1 /home/[directory]/public_html/[site]/library/Zend/Mail/Transport/Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
    #2 /home/[directory]/public_html/[site]/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
    #3 /home/[directory]/public_html/[site]/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
    #4 /home/[directory]/public_html/[site]/library/XenForo/Mail.php(177): Zend_Mail->send()
    #5 /home/[directory]/public_html/[site]/library/XenForo/Mail.php(152): XenForo_Mail->sendMail(Object(Zend_Mail))
    #6 /home/[directory]/public_html/[site]/library/XenForo/ControllerPublic/Misc.php(197): XenForo_Mail->send('[contact email]', '', Array, '[user email]', 'admin')
    #7 /home/[directory]/public_html/[site]/library/XenForo/FrontController.php(310): XenForo_ControllerPublic_Misc->actionContact()
    #8 /home/[directory]/public_html/[site]/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #9 /home/[directory]/public_html/[site]/index.php(13): XenForo_FrontController->run()
    #10 {main}
    Request State
    array(3) {
      ["url"] => string(36) "http://[site]/misc/contact"
      ["_GET"] => array(0) {
      ["_POST"] => array(6) {
        ["subject"] => string(4) "test"
        ["message"] => string(4) "test"
        ["_xfToken"] => string(53) "5,1357309405,9df980a8d342110d4516d9e4594023145fccf680"
        ["_xfRequestUri"] => string(1) "/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
    I'd updated the conversation file to change the from email (per these instructions), but even after restoring the original file, the issues continue.
  2. Mouth

    Mouth Well-Known Member

    Do you have "$config['enableMail'] = 1;" in your library/config.php ?
    taylor_smith likes this.
  3. taylor_smith

    taylor_smith Well-Known Member

    It wasn't in the config file, no. I've added the line, both as = 1 and = '1', but still no luck. :(
  4. taylor_smith

    taylor_smith Well-Known Member

    Also tried "$config['enableMail'] = true;". :(
  5. taylor_smith

    taylor_smith Well-Known Member

    We tested mail here: http://community.mmo.tm/test/email/. It's sent successfully. But it still won't send e-mail via contact form, validation e-mails, conversation notifications, etc.

Share This Page