in reply to (OT) smtp problem

use Mail::Sendmail

Seriously, this module is simple, with a simple interface, so it's easy to use, implemented in pure Perl (so it's easy to install even when you don't have a compiler or a working CPAN.pm), and basically Just Works. Get it. Use it.