NAME

Mail::Mailer::smtp_auth - a Net::SMTP_auth wrapper for Mail::Mailer

SYNOPSIS

use Mail::Mailer;

$mailer = new Mail::Mailer 'smtp_auth' , (
    Server => $server ,
    Auth   => [ $auth_type, $user, $pass ]
);

$mailer->open(\%headers);

print $mailer $body;

$mailer->close;

DESCRIPTION

The code is almost a copy of Mail::Mailer::smtp but use Net::SMTP_auth instead Net::SMTP.

for more details, please perldoc Mail::Mailer and perldoc Net::SMTP_auth

EXPLAINATION

As $auth_type you can specify any of: 'PLAIN', 'LOGIN', 'CRAM-MD5' etc.

SEE ALSO

Mail::Mailer, Net::SMTP_auth

AUTHOR

Fayland, <fayland at gmail.com>

COPYRIGHT & LICENSE

Copyright 2006, 2008 Fayland, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.