furthermore....barebonesmailer does not equal "your" script, just because you reproduced it here. in fact i don't see any evidence of input/mod by you at all. if you are blind to the "print" statements...maybe you should be playing with outlook and not perl.
the hardest line to type correctly is: stty erase ^H