We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31621
    • 23 Posts
    I'm on Modx Revolution 2.2.0-pl2 and have the following FormIt snippet:
    [[!FormIt?
       &hooks=`recaptcha,spam,email,redirect`
       &emailTpl=`MyEmailChunk`
       &emailTo=`*****@$$$$$.com`
       &redirectTo=`2`
       &validate=`name:required,
          email:email:required,
          subject:required,
          text:required:stripTags`
    ]]
    

    Simply used from the FormIt example on the ModX Documentation Examples.

    My redirect does not work. I have my resource id 2 published (hidden from menus).

    My email is also not sent. I have been able to successfully send emails when I create new Users from the Manager for the user's ModX generated password. [ed. note: vishalashah last edited this post 14 years, 7 months ago.]
      • 1778
      • 659 Posts
      Hello
      1/ Did you try to diagnose the email function of your installation ?

      2/ I assume you have correctly created the EmailChunkTpl to use (MyEmailChunk in your Formit call) ?

      BobRay has realised a snippet (QuickEmail http://modx.com/extras/package/quickemail) that can be helpful to diagnose email sending problems..

      Cheers
        • 31621
        • 23 Posts
        1. I used the QuickEmail snippet and it is able to send me an email.
        2. MyEmailChunk exists.

          • 1778
          • 659 Posts
          In this case you should try to remove the hooks and try them once at time to see which one and where it fails...

          Try only with redirect to see if the redirection works . Then only with email... If these two ones work as expected it may be a problem with the 'spam' hook (wich check if the email given is in a "black list" somewhere on the Internet as far as I know)...

          Cheers
            • 31621
            • 23 Posts
            Thanks. I should have spent more time trying to debug this. the recaptcha hook was causing the problem.
              • 1778
              • 659 Posts
              You're welcome. Glad you have it to work now.
              Cheers