We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27446
    • 8 Posts
    Hey,

    I’m trying to get formIt working on my website, only problem is that It doesn’t want to sent the mail to my email adress.
    What I have at this moment is:

    Snippet Call:
    [[!FormIt?
       &hooks=`recaptcha,spam,email,redirect`
       &emailTpl=`email`
       &emailTo=`[email protected]`
       &redirectTo=`19`
       &validate=`naamrequired,
          email:email:required,
          onderwerp:required,
          text:required:stripTags`
    ]]


    emailTpl
    Deze email is vanaf [[++site_url]] verzonden
     
    <br />[[+name]] ([[+email]]) Wrote: <br />
     
    [[+text]]


    Enviroment info:
    MODx Revolution 2.0.7-pl (traditional)
    don’t know the server os or version sad
    PHP Version 5.3,
    MySQL Version 5,
    pdo_mysql is installed,
    Google Chrome 9.0.597.98,

    • Anything in the error log?

      There’s an error in your validate call, you’re missing the colon between "naam" and required.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 27446
        • 8 Posts
        I fixed the error in my validation check, so that should be correct now. After clearing the error log and trying to send the form I got the following error:

        Error log

        [2011-02-16 23:56:17] (ERROR @ /home/vhosting/n/vhost0026932/domains/toetsiefoetsie.nl/htdocs/www/core/model/modx/rest/modrestclient.class.php : 194) PHP warning: simplexml_load_string(): Entity: line 2: parser error : Opening and ending tag mismatch: br line 2 and div
        [2011-02-16 23:56:17] (ERROR @ /home/vhosting/n/vhost0026932/domains/toetsiefoetsie.nl/htdocs/www/core/model/modx/rest/modrestclient.class.php : 194) PHP warning: simplexml_load_string(): /span>
        Access denied for user ’apache’@’localhost’ (using password: NO)</div>
        [2011-02-16 23:56:17] (ERROR @ /home/vhosting/n/vhost0026932/domains/toetsiefoetsie.nl/htdocs/www/core/model/modx/rest/modrestclient.class.php : 194) PHP warning: simplexml_load_string(): ^
        [2011-02-16 23:56:17] (ERROR @ /home/vhosting/n/vhost0026932/domains/toetsiefoetsie.nl/htdocs/www/core/model/modx/rest/modrestclient.class.php : 194) PHP warning: simplexml_load_string(): Entity: line 4: parser error : Premature end of data in tag div line 1
        [2011-02-16 23:56:17] (ERROR @ /home/vhosting/n/vhost0026932/domains/toetsiefoetsie.nl/htdocs/www/core/model/modx/rest/modrestclient.class.php : 194) PHP warning: simplexml_load_string(): </response>
        [2011-02-16 23:56:17] (ERROR @ /home/vhosting/n/vhost0026932/domains/toetsiefoetsie.nl/htdocs/www/core/model/modx/rest/modrestclient.class.php : 194) PHP warning: simplexml_load_string(): ^
        [2011-02-16 23:56:17] (ERROR @ /index.php) Could not connect to provider at: http://www.stopforumspam.com/
        • Try removing the "spam" hook and see if that fixes anything.

          While it’s expected that if a validation hook fails it doesn’t go on, this might be a bug of some sorts...
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 27446
            • 8 Posts
            Removed it and tried if it worked, didn’t get any error message anymore in the error.log.
            Yet, the function still does not seem to work. sad

            Current snippet call
            [[!FormIt?
               &hooks=`recaptcha,email,redirect`
               &emailTpl=`email`
               &emailTo=`[email protected]`
               &redirectTo=`19`
               &validate=`naam:required,
                  email:email:required,
                  onderwerp:required,
                  text:required:stripTags`
            ]]


            *Edit*
            Could it be the "email:email:required" part?
            Seems like a double declaration. I don’t know much about the system yet so unsure if that’s wrong or correct
            • email:email means it checks if the field email is an emailaddress, so that should be fine.

              The email aint in the spam folder either?


              You could try installing SPForm.. .I think that can help you debug if it’s a server problem.
                Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
                • 3749
                • 24,544 Posts
                Quote from: Mark at Feb 16, 2011, 11:38 PM

                You could try installing SPForm.. .I think that can help you debug if it’s a server problem.
                Much as I appreciate the plug, QuickEmail is a much better choice. Much simpler and better at diagnosing email problems. wink
                  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
                  • 27446
                  • 8 Posts
                  Haven’t had much time for the website but took another look at it today.
                  I tried using QuickEmail and it worked nice.
                  I get the default email from QuickEmail in my mailbox. But then again, if I try to send the form it should be sending it’s not doing as it should sad

                  So i’m getting quite lost in how I should get it to work now.
                    • 27446
                    • 8 Posts
                    Problem is fixed, thanks for the help laugh
                    • Your welcome. tongue

                      (Thought we might as well talk on the forums too, besides Twitter and email)
                        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.