in reply to Sending out text mail
Just to note something here, in most cases you can not send an email from a Windows system. On Linux, you can use sendmail (and most scripts do) to send mails, however, there is no such (default) possibility in Windows systems. You need additional software (such as blat) and/or Perl modules that handle everything needed. As I have not used any modules to send mail, and rely on sendmail to send messages (may or may not be the best way), I really can not explain why your script is failing, other then the possibility that its requireing sendmail or an additional plugin to actually function.
Have you tried uploading (and setting permissions) to a linux system and running the script?