Mail::Mailer::smtp_auth - a Net::SMTP_auth wrapper for Mail::Mailer
use Mail::Mailer; $mailer = new Mail::Mailer 'smtp_auth' , ( Server => $server , Auth => [ $auth_type, $user, $pass ] ); $mailer->open(\%headers); print $mailer $body; $mailer->close;
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
As $auth_type you can specify any of: 'PLAIN', 'LOGIN', 'CRAM-MD5' etc.
$auth_type
Mail::Mailer, Net::SMTP_auth
Fayland, <fayland at gmail.com>
<fayland at gmail.com>
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.
To install Mail::Mailer::smtp_auth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Mailer::smtp_auth
CPAN shell
perl -MCPAN -e shell install Mail::Mailer::smtp_auth
For more information on module installation, please visit the detailed CPAN module installation guide.