in reply to Sending Mail Through ISP (SMTP Auth)
The last example in How do I send e-mail from my Perl Program? uses Net::SMTP with authentication.