I released some code you might find useful for replacing mail() functions with the Pear Mail_Queue package. It is a simple drop-in replacement function (called mailq–so you only have to change one letter). I use it all the time to Mail_Queue-enable existing PHP applications. Instructions are available in the repository. Enjoy!