radical hacks Mail Hijack sent in this hack which is used to replace mail-lib.pl when you are testing scripts on a local server and do not want the mail routines to cause errors.

Ellio says, "I wrote it for using while testing scripts on a local server (Sambar) on a Win 95 system. When working off line I was not able to send email so when sending emails, as a result of the scripts' behaviour, an error occurs. With this script taking over from the mail_lib the email is saved as a text file with a random created name. So multiple emails can be send or subsequent created emails can be checked upon script modifications."

Check out the source