We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36931
    • 206 Posts
    Someone has experience with formit?

    I just installed it with Catcha.
    While I filled up the fileds and send it, I got that error message


    An error occurred while trying to send the email. Could not instantiate mail function.


    It's a bit funny because if I use the function mail() in a snipet, it works.

    Some one has a idea how I can configure Formit or SMTP section?

    Thanks cheers
      • 37105
      • 194 Posts
      What is your FormIt call? Sometimes a typo can cause such an error.
        Codeplaza Webdesign: for professional websites at low cost
        • 36931
        • 206 Posts
        Hello
        Thank for your answer.

        My call is:
        [[!FormIt? &hooks=`math,spam,email,redirect` &store=`1` &emailUseFieldForSubject=`1` &emailTpl=`` &emailTo=`[email protected]` &redirectTo=`6` &validate=`name:required,firstname:required,email:email:required,phone:required,comment:required:stripTags`]]
          • 36931
          • 206 Posts
          My code is withn a chunk. Should it in a snipest?
            • 37105
            • 194 Posts
            No, using a chunk to call FormIt is fine! Did you already try to use an chunk as template for &emailTpl?
              Codeplaza Webdesign: for professional websites at low cost
              • 36931
              • 206 Posts
              Hello
              I just tryed it but the problem is still present shocked(
                • 3749
                • 24,544 Posts
                To use SMTP, just set the SMTP System Settings (put smtp in the search filter box at the upper right of the System Settings grid). Once the settings are correct, FormIt, and any other email in MODX, will use SMTP automatically.

                I would also turn off Captcha until you get the email working, in case it's the problem.

                You might install the QuickEmail extra to help you diagnose any email problems.
                  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
                  • 37105
                  • 194 Posts
                  Just to be sure. Try to set the &emailTo to a valid and existing email. And also as Bob mentioned drop the math-hook.
                    Codeplaza Webdesign: for professional websites at low cost
                    • 36931
                    • 206 Posts
                    Well done!!!
                    It's work fine since I use SMTP

                    Thank for your help
                      • 36931
                      • 206 Posts
                      Hello.

                      I would like to know if there is a way to have a chunk which will be use to send an confirmation to the sender/person who filled up the form.

                      As &emailTpl=`emailTpl`, but one for the confirmation?