Contact Form Stopped Working

Issues related to forms.
Post Reply
canderson
 
 
Posts: 1
Joined: Mon Mar 21, 2022 7:39 pm

Contact Form Stopped Working

Post by canderson »

My company has a website with a contact form that has stopped working. It worked fine up until recently and now it fails consistently and doesn't load the error page properly, to me it seems like the CSS isn't loading but I'm not sure that's what's going on. When I preview the error page from the program it loads fine. I've contacted the host and supposedly nothing is wrong on their end. At the time of the error, the "Use PHP mailer instead of standard PHP mail" box was checked. When I uncheck it I can get to the success page, which loads correctly, but the email doesn't go through. We have other sites with this program hosted by the same service where the contact forms work fine. I tried copying the contact form from one of them and putting it on this site and it didn't work. I tried making a new page and contact form from scratch and that also didn't work. I can send emails directly to and from the email address the form is using without any problems. If I can get any help with this I would appreciate it because I am at a loss as far as how to fix this or what the problem even is.

https://mydecalprinter.com/about-us/con ... rinter.php
User avatar
BaconFries
 
 
Posts: 5665
Joined: Thu Aug 16, 2007 7:32 pm

Re: Contact Form Stopped Working

Post by BaconFries »

My company has a website with a contact form that has stopped working. It worked fine up until recently and now it fails consistently
If it has previously worked and suddenly stopped and you haven't changed anything then 99.9% of the time it is related to a change on the server. It also has nothing to do with css, forms use php and are processed on the server, the css is for layout and its look only.
At the time of the error, the "Use PHP mailer instead of standard PHP mail" box was checked.
It's possible your host doesn't support PHP Mailer only they can tell you this.
When I uncheck it I can get to the success page, which loads correctly, but the email doesn't go through.
Please read from the following:
Emails are not arriving in my inbox...
Including What if my host does not support php mail or php mailer? and How can I make sure the 'from address' in the email message is the entered email in the form.

I also noticed that you have two forms on the page you should only have one Please either remove the one you copied from and into or remove the one you have rebuilt so not to cause errors such as two php scripts trying to process one form.
User avatar
Pablo
 
Posts: 22528
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact Form Stopped Working

Post by Pablo »

To resolve this issue, start by identifying the specific error on the server side. Often, email delivery problems occur because the 'from' address is blocked or restricted by the server. However, other recent changes to server settings may also be causing the disruption.

I recommend reaching out to your web host for support. Ask them to check the server logs for any error messages related to email transmission. While they may initially suggest a software issue, this is frequently due to a configuration issue. Understanding the root cause on the server will guide any necessary adjustments to your configuration to restore functionality.
gvr
 
 
Posts: 54
Joined: Wed Sep 02, 2009 2:07 pm

Re: Contact Form Stopped Working

Post by gvr »

If it worked before, it sounds like a server issue to me. Know if PHP Mailer works for your host, and make sure you’re only using one form on the page. The conflicting scripts can screw things up. Second, be sure the ‘from’ address is not being blocked by the server.
Post Reply