I have a website on Godaddy, with a contact form where visitors send me messages.
The contact page where people enter the messages has this action line in the code
form method="post" action="send.php"
This sends the data to the "send.php" file, which contains the following line of code for my email address where I receive the messages, and the subject of the received messages
mail("email@example.com", "Form Submission",
This setup worked perfectly for several years. Then suddenly two weeks ago I stopped receiving the messages in my email. I went to the send.php file and changed the receiving email address thinking maybe my email provider was blocking them, but it didn't work even though I tried 4 different email addresses from different providers.
I tried everything I could think of for hours, installed PHPMailer, nothing worked. Then finally by mere chance I changed the subject of the emails in the send.php file from "Form Submission" to "Feedback" and suddenly all started working!
Since I had tried several receiving emails and none worked, I was left with the conclusion that Godaddy was blocking messages titled "Form Submission" from being sent, probably by their internal spam filter or something. To be perfectly sure I went back to the send.php file and changed the subject of the emails back to "Form Submission" and it stopped working again and no emails showed up, then I changed to subject to other words and it worked every time.
I decided not to investigate further and accepted that the contact form worked fine with the new subject "Feedback" in the send.php file, then after working flawlessly for two weeks it stopped again. You'd send a message, receive a normal success, but the emails do not show up in my email. Now that I know the issue I went and changed the subject of sent email in the send.php file from "Feedback" to "Contact request", and it worked again.
Now I can't just sit and wait until it stops working again and I lose a bunch of messages before I go and change the subject in the send.php to make it work again. Can someone please tell me how to deal with this and why does Godaddy mysteriously block messages with certain "subjects" without a warning?
The issue is too complicated for me to tell to a customer service representative over the phone in an expensive overseas call, so hopefully this can be considered a support ticket.
Any help is appreciated. Thanks.