We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 436 ☆ A M B ☆
    • 265 Posts
    I have a feeling this might be a server-side issue, but I thought it could cause no hard in posting here incase somebody has a solution.

    I've tried to set up MODX's emails being sent through Google Apps using the Google SMTP settings, see this screenshot for the settings: http://cl.ly/T4bX

    Then I have set up the FormIt snippet in the usual way, but every time I try to send an email I get the following errors:

    [2013-12-20 23:06:14] (ERROR @ /home/xxxxxx/public_html/core/model/modx/mail/phpmailer/class.smtp.php : 122) PHP warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: SSL operation failed with code 1. OpenSSL Error messages:
    error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
    [2013-12-20 23:06:14] (ERROR @ /home/xxxxxx/public_html/core/model/modx/mail/phpmailer/class.smtp.php : 122) PHP warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: Failed to enable crypto
    [2013-12-20 23:06:14] (ERROR @ /home/xxxxxx/public_html/core/model/modx/mail/phpmailer/class.smtp.php : 122) PHP warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to tls://smtp.gmail.com:587 (Unknown error)
    [2013-12-20 23:06:14] (ERROR @ /index.php) [FormIt] An error occurred while trying to send the email. SMTP Error: Could not connect to SMTP host.
    


    Almost all the errors are coming from MODX's class.smtp.php file, anybody have any ideas what the problem could be here?
      MODX Ambassador for Thailand. Managing Director at Monogon, a web design and development studio based in Bangkok, Thailand. - Follow me on Twitter.
      • 3749
      • 24,544 Posts
      You could try 465 for the port, and/or ssl for the prefix.

      You might also try QuickEmail and see if it has the same problem. If so, it's probably a server issue.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting