in reply to Sending mail on a bad server...

Are you remembering to use the modules? see perlfunc:use
Have you downloaded the modules you want from CPAN?