I'm having a weird problem on a few of my sites running Webform. Once a user clicks submit, it takes a really long time to load the confirmation page. We're talking like over 30 seconds.
The weird thing is if you mess something up on the form, it immediatley loads the page to tell you the form is wrong.
Also, once you submit the form, the email is sent out pretty quickly but the form hangs. You can see it in action at http://www.accutanelawsuit.net (form is on right side of the page).
Any ideas how to fix this?
Comments
Comment #1
quicksketchYour server is probably getting hung up sending out e-mails. Try setting up a webform that doesn't have any e-mail and see if it processes faster. If that helps the problem, you should work with your hosting company to set up e-mail properly. Webform does not inherently have slow-downs when submitting forms, so I'm moving this to a support request.
Comment #2
achandel commentedProblem: We launched our site a few days ago. We're using Rackspace Cloud sites and for some reason the default phpmail function was at first very slow, and then stopped all together (at times). It slowed down webforms and anything that was using emails. Webforms were taking as much as 4-5 minutes to complete. It was same with the ubercart module when processing request from payment gateways. It was taking 3-5 minutes to return to our site from payment gateway site, as emails were taking time to go out to buyers.
Solution: Move away from the default phpmail function and use a SMTP email option.
a. SMTP Authentication Support (http://drupal.org/project/smtp)
OR
b. PHPMailer (http://drupal.org/project/phpmailer)
You can then use Google Mail or any other mail server of your choice. This will solve the problem.
Comment #3
quicksketchComment #4
larry rosenfeld commentedBravo! quicksketch, just wanted to give you a big THANK YOU! I've been having this problem weigh on me for a couple of days and could not figure it out until I saw your response (#1 above, from 11/12/2010) here. Thanks so much for being so helpful! - Larry