PHP MAIL() stopped working


Hello, I have been having an issue where the mail() function in php isn’t working no error, no mail. please help

Email script link ->


What is the code you are using?


Hi @sahil_sejpal

It might be an error in your script. When I go here… it shows “error”

The reason is your script requires a POST request with type and many data. Please check that again


hello supun,

My code is working fine as all the data is been inserted properly in the dB but emails are not going. As I have tested code in local.


There might be errors in email sending. Our developers are off these days. You have to wait until the new year starts.

Or simply upgrade to hostinger

We are really sorry for the inconvenience.


hello still the problem has not been solved.