I have a php form that has been working fine for a long time, but lately it’s been having some issues. Every now and then I will get a message saying that the form did not submit. It doesn’t make sense given the series of tests that we put it through (in the hundreds) and the error was never found before, not even once. We have been getting more spam lately, so I’m thinking it could have something to do with it. Maybe 50 spam submissions per day.
Nobody else has reported the issue yet, so do you think it could be related to my IP? It seems to me that it is server related given the form was working flawlessly in the past. Any thoughts/ideas are welcomed.
I get those messages from time to time on boards or news websites I post on. The cause could be a number of things, none of which I think is your code. It could be a problem with a connection between the computer and the destination site, somewhere along the route. A problem with your ISP, web host, host’s data center… There are a lot of places where something can go wrong on the internet. If it was your code, you would be having consistent problems and that does not seem to be the case here. The fact that it has been working fine for a long time indicates it is not a PHP coding issue.
No, I really do not have any ideas. Intermittent problems are the toughest to diagnose. I assume your host is not throttling you for resource consumption and the script is not timing out. If you are getting that error only on form submission, I don’t know how you could do a traceroute in that case.
Sounds like the message is failing to mail possibly due to mail limitations by the host. Perhaps see if you have been exceeding your hosts mailing limits per day.