We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8822
    • 203 Posts
    Hi there, i have created a form using FormIt and configured System Settings to use SMTP (as per the instructions). I get a SMTP Error: Could not connect to SMTP host, when submitting my form and the error log says it was 'Unable to find the socket transport tls'. I am developing on localhost and using Revo 2.2.0. Has anyone else come across this issue or have any pointers/ideas? I have not used SMTP before and it may be something really simple. Any help much appreciated smiley
      • 3749
      • 24,544 Posts
      I'm not sure what you're using, but these are the correct System Settings for SMTP with Gmail:


      SMTP Authentication: Yes
      SMTP Connection Prefix: tls
      SMTP Hosts: smtp.gmail.com
      SMTP Password: yourGmailPassword
      SMTP Port: 465
      SMTP User: yourGmailUsername
      Use SMTP: Yes



      ---------------------------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
      MODx info for everyone: http://bobsguides.com/modx.html
        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
        • 8822
        • 203 Posts
        Hi BobRay,

        Thanks for your response. Those are the exact settings that i used. Any ideas?
          • 3749
          • 24,544 Posts
          Try installing QuickEmail. With its debug turned on you may get more information about what's wrong.

          Offhand, it sounds like a server configuration 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
            • 8822
            • 203 Posts
            Thanks - installed and have read your notes on your website. I pretty much get the same error:

            ***
            Final Values (actually used when sending email):
            subject: Default Subject
            to: [email protected]
            fromName: [email protected]
            replyTo: [email protected]
            emailSender: [email protected]
            allowHtml: 1
            Message Body: Default Message
            Send Failed
            Mailer error info: SMTP Error: Could not connect to SMTP host.
            Server Debug Information:
            SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32)
            ***

            If however i have configured the system setting mail_smtp_user to use [email protected] shouldn't that show as the 'emailsender'? The hotmail address i am using is the address i am trying to send to?

            Really appreciate your help - i have a number of forms to create and not being able to test them on my local server is not ideal smiley

              • 3749
              • 24,544 Posts
              That really sounds like a server configuration issue that has nothing to do with MODX. The PHP installation apparently doesn't have tls support enabled. Are you using PHP5? I don' think PHP4 has tls.


              ---------------------------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
              MODx info for everyone: http://bobsguides.com/modx.html
                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