Broken Contact Form
This support request was posted in BBQ by smartguysdesign
- smartguysdesign March 26, 2014 at 11:30 am
Dear BBQ,
I’ve have some problems with your contact form–have you had anyone else have similar problems? Essentially everything seems fine with the webhost, but any time I enable the contact form, the data never makes it to the destination address.
Do you have any insight as to why the contact form is not working?
Best,
TimJuanfra Aldasoro March 26, 2014 at 1:51 pmHi Tim,
Thanks for writing.
So you’re having trouble receiving the emails? Or viewing the form?
Do you get WordPress emails when you get new comments or something?
Best,
Juansmartguysdesign March 27, 2014 at 10:31 amJuan,
Thanks so much for your quick response.
I had the contact form set to the “contact” template, the form was displaying OK, but whenever I filled the form out, the email was never received by the destination address.
I had my client check his spam folder, make sure he had his email correctly in the wordpress dashboard, etc, and it did not work.
Ironically enough I even tried installing Contact7 and building a custom form and the same thing happened.
Do you have any idea what might cause this? The fact that Contact7 also didn’t work, makes me wonder if it’s a server issue, although the site is hosted on the same web server as many of my other sites whom I’ve never had a problem with. Additionally, the destination email address I can confirm is working.
For now we put a simple “mailto” link on his contact page–a little old school for the web and not the best for his business image. Was just wondering how to get this contact form working and have run out of possible solutions. I wasn’t sure if you’ve heard of this before or had any ideas to see if it’s the server, the contact form specifically or some portion of the theme. (I know this stuff can be complex!)
I really appreciate your help.
Best in life,
Tim Knab(PS, great theme and great design work on everything I’ve seen from you all, very impressed)
smartguysdesign March 27, 2014 at 10:33 amJuan,
Now that I think about it, I built a second site with your theme also:
Her contact form also did not work. I had to use a text link for her also. This is why I thought perhaps it was theme specific. These particular sites are hosted on Dreamhost.com, a rather common host, albeit not the best, but works with WP sites. All of our other sites are hosted there and we haven’t had any issues with other contact forms. Not saying to rule the server out as the source of the problem, but considering the contact form was broken on another site with this theme, I thought it might help us diagnose!
Thanks again so much for your patience and assistance!
–Tim
Juanfra Aldasoro March 27, 2014 at 1:29 pmHi Tim,
Thanks for your kind words 🙂
Then, if the whole site isn’t sending mails out, for sure it is hosting related.
The contact script use the wp_mail function(), which is the recommended function to use when sending mails out. For this function to work you need:
For this template to work ok you need the following:
A) Settings SMTP and smtp_port need to be set in your php.ini
B) Also, either set the sendmail_from setting in php.ini, or pass it as an additional header.(These are server configurations).
You can either try with a plugin like https://wordpress.org/plugins/wp-smtp/
Or contact your hosting provider and ask them about this.
Best,
Juan
You must be logged in to reply to this topic.