mail() function stopped sending email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
msthac01
Forum Newbie
Posts: 2
Joined: Mon Oct 29, 2007 4:45 pm

mail() function stopped sending email

Post 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.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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.
msthac01
Forum Newbie
Posts: 2
Joined: Mon Oct 29, 2007 4:45 pm

Post 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.
Post Reply