in reply to SMTP Authentication with Perl

I prefer to use Mail::Sender which can handle authentication. If you must use Mail::Sendmail, grab this module and study how the author did for implementing authentication.

HTH, Valerio