in reply to How do I send emails with Mail:Mailer and an SMTP server?

from the Mail::Mailer documentation:
Use the smtp protocol via Net::SMTP to deliver the mail. The server to use can be specified in @args with
$mailer = new Mail::Mailer 'smtp', Server => $server;