ErcFrtz Posted May 27, 2010 Share Posted May 27, 2010 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 More sharing options...
jdavidbakr Posted May 27, 2010 Share Posted May 27, 2010 Do you have access to the apache error logs? That'd be the first place I'd look. Link to comment https://forums.phpfreaks.com/topic/203129-mail-no-longer-working/#findComment-1064323 Share on other sites More sharing options...
kenrbnsn Posted May 27, 2010 Share Posted May 27, 2010 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 Link to comment https://forums.phpfreaks.com/topic/203129-mail-no-longer-working/#findComment-1064330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.