We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6757
    • 13 Posts
    I’m new to Modx and having just read through the documentation and installing the latest version 0.9.2.2 I can’t get snippets to work. The one in question is the contact form, I have made sure that Cacheable and richtext is turned off on the contact page and have tried using [[ContactForm]] as well as [!ContactForm!] within my page, but both give me a "The email address you supplied ({}) does not appear to be valid. Please try again." error. Any suggestions? I have seen some references to a 9.5 version that some are running, where do I download that version?

    Thanks,
    Josh

    This is the contact portion of the page.

    <table width="664" height="600" cellspacing="0" cellpadding="0" border="0" align="">
    <tbody>
    <tr>
    <td width="474" bgcolor="#f2f4f7">[!ContactForm!]</td>
    <td width="10">&nbsp;</td>
    <td width="180">&nbsp;</td>
    </tr>
    </tbody>
    </table>
      • 26435
      • 1,193 Posts
      The default email is [(email_sender)] which takes it’s value from the email you put into the system config. you can override this with &sendTo parameter ([!ContactForm? &sendTo=`[email protected]`!].

      Just as a note those ` are backticks and not ’ single quotes.

      -sD-
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 6757
        • 13 Posts
        I still get the same error with

        <td width="474" bgcolor="#f2f4f7">[!ContactForm? &sendTo=`[email protected]`!]</td>

        Josh
          • 26435
          • 1,193 Posts
          honestly, I would really encourage you to look at eForm 1.4.1. It is much more flexible than ContactForm.
          You can get it here:
          http://modxcms.com/eForm-1003.html

          -sD-
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
            • 6757
            • 13 Posts
            I will try it

            Josh
              • 26435
              • 1,193 Posts
              Quote from: dawisewun at Dec 05, 2006, 05:31 PM

              I will try it

              Josh

              Ok Josh,
              If you are using one of the MODx 0.9.5 (or one of it’s Release candidates), eform is installed by default, and comes with two chunks (ContactForm and ContactFormReport), with an example call on the "contact us" page.
              If you are using an older version, you may need some tips in getting it set up, so I posted an example eForm Form, an eForm Report Form, and an example call on the eForm wiki page.
              Hopefully that will help get you started.

              -sD-
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 6757
                • 13 Posts
                Ok, that worked like a charm.

                Thanks for the quick replies.

                Josh
                  • 26435
                  • 1,193 Posts
                  Cool!
                  Glad you got it working Josh. grin

                  -sD-
                    Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                    All of the above... in no specific order.


                    I send pointless little messages