We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42077
    • 3 Posts
    I have a simple FormIt contact form with a couple of fields and some checkboxes for areas of interest. Everything is working, but on submit, it takes about 12-14 seconds on average to get a response from the server. Once there is a response, the thank you page loads quickly. Any ideas as to what could be causing it to be so slow?

    I'm on Revo 2.2.1. Here's my FormIt call:

    [[!FormIt?
    &hooks=`email,redirect,FormItAutoResponder`
    &emailTpl=`contact_email`
    &emailTo=`[email protected]`
    &emailSubject=`Website Inquiry`
    &redirectTo=`128`
    &validate=`name:required,
    email:email:required,
    comment:required:stripTags`
    &fiarTpl=`contact_response`
    &fiarSubject=`Thank You`
    &fiarFrom=`[email protected]`
    &fiarFromName=`Website`
    &fiarReplyTo=`[email protected]`
    ]]

    Thanks in advance.
    • FormIt doesn't return until it gets a response from the mailing. Test it without email and see how it behaves.

      You can try BobRay's QuickEmail and see if that is also slower than you would expect.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 42077
        • 3 Posts
        Thanks for the response. I installed BobyRay's QuickEmail and the server response was a little faster than with FormIt--about 8 seconds, compared to 12. But 8 seconds for a simple post with one field still seems slow. Would that indicate an issue with my webhost?
        • I would think so. Something with the mail servers.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 12410
            • 353 Posts
            Using formit my submit takes 2m7seconds. Any ideas guys?
            Thanks
              • 42077
              • 3 Posts
              As sottwell suggested, try out BobRay's QuickEmail to see if that's any faster than your formit submit. That might give you a hint as to whether the problem is with the form or the mailserver.
                • 12410
                • 353 Posts
                Sendmail was the culprit. I added my server name to etc/hosts and all good now. Thanks
                Modify the first line in etc/hosts so it reads
                127.0.0.1    localhost localhost.localdomain yourservername
                

                Email sends instantaneously (<=courtesy of spellcheck) now. [ed. note: howster last edited this post 10 years, 1 month ago.]