Jump to content

mail() no longer working


ErcFrtz

Recommended Posts

I have a couple of websites that access databases as well as utilize programs to create output and then has the option of mailing this information to the users email. I use the mail() function to do this and everything was working fine. A couple of days ago it stopped working. Everything in the php scripts runs fine except it does not email the files anymore. The user doesn't receive any emails.

 

I am not the administrator of the server that the websites are hosted on but I know who is and he claims that nothing has changed that should cause that to stop working, but if all the scripts just stopped working at once, I would assume it to be something with the server.

 

Does anyone have any suggestions on how to go about testing things to determine where the problem lies? I have searched and at least in my searches found that there is no reliable way to capture errors from mail(). Any help would be appreciated. Thanks.

Link to comment
https://forums.phpfreaks.com/topic/203129-mail-no-longer-working/
Share on other sites

Ask the admin to look at the mail logs. If they show the mail getting out without errors, then the problem is not on your machine. If they show errors, the errors should point to a solution.  If you send email from the host without using your script, does it work?

 

Ken

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.