Page 1 of 1
mail() function stopped sending email
Posted: Mon Oct 29, 2007 4:50 pm
by msthac01
Not sure if this is the right forum for this question but here it goes. A few days ago we noticed that our php CRM app has stopped sending all emails whether they be auto emails or from actually clicking on a button. Nothing is coming out and the site is not generating any errors. I'm very confused and can't seem to find anything wrong with the code or the server on which it resides. Not sure what could be the problem. Any suggestions would be greatly appreciated.
Posted: Tue Oct 30, 2007 3:52 am
by shiznatix
make sure your server did not setup spam filters and whatnot. This happened to me on a host before because it was a shared host a lot of spammers where abusing the fact that you did not have to authenticate with the servers to send the mail.
The solution was to add a few ini_set(); functions to authenticate yourself in a strange way but what you should do is contact your host. Sometimes hosts will pull this kinda stuff without telling anyone which is very annoying.
Posted: Tue Oct 30, 2007 10:01 am
by msthac01
after more investigation i've found some smtp errors in the system event log. Though these errors mainly just look like bad addresses and the like, but if I try to force the site to send an email to me, by hardcoding my email to a button, I see no error and don't receive and email. All of the errors in the event log are on outside addresses, never any mention of an internal address and most emails are sent to clients as well as internal employees that are working on that particular file. This site is hosted on our server, and I don't believe there are any filters or blocks in place.