if ($sender->MailMsg({ smtp => 'mail.yourISP.com', from => 'somebody@somewhere.com', to =>'Jenda@Krynicky.czX', subject => 'this is a test', msg => "Hi Johnie.\nHow are you?" auth => 'NTLM', authid => 'jenda', authpwd => 'benda', }) < 0) { die "$Mail::Sender::Error\n"; } print "Mail sent OK."