use Mail::Sender; my $sender = new Mail::Sender { smtp => 'the.mail.server.com', auth => 'NTLM', authid => 'username', authpwd => 'password', };