Fayland 林 > Mail-Mailer-smtp_auth-0.02 > Mail::Mailer::smtp_auth

Download:
Mail-Mailer-smtp_auth-0.02.tar.gz

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

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.