I'm in a LAMP environment working on a system that sends out a lot of email notifications. I'd like a way to keep PHP from sending out actual emails in my development environment. Right now, I'm commenting out all of the mail() lines, but this is starting to cause confusion downstream with the QA people because they are removing the commented out lines and pushing them to the testers.
Any simple way disable sendmail in PHP without throwing an error?