Fayland 林 > Email-Send-SMTP-TLS-0.04 > Email::Send::SMTP::TLS

Download:
Email-Send-SMTP-TLS-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Email::Send::SMTP::TLS - Send Email using Net::SMTP::TLS (esp. Gmail)

SYNOPSIS ^

    use Email::Send;
    
    my $mailer = Email::Send->new( {
        mailer => 'SMTP::TLS',
        mailer_args => [
            Host => 'smtp.gmail.com',
            Port => 587,
            User => 'username@gmail.com',
            Password => 'password',
            Hello => 'fayland.org',
        ]
    } );
    
    use Email::Simple::Creator; # or other Email::
    my $email = Email::Simple->create(
        header => [
            From    => 'username@gmail.com',
            To      => 'to@mail.com',
            Subject => 'Subject title',
        ],
        body => 'Content.',
    );
    
    eval { $mailer->send($email) };
    die "Error sending email: $@" if $@;

DESCRIPTION ^

We can use this module to send email through smtp.gmail.com. Email::Send::Gmail use SSL, while this module use TLS.

Of course, others who support TLS also can use it.

SEE ALSO ^

Email::Send, Net::SMTP::TLS

COPYRIGHT & LICENSE ^

Copyright 2007 Fayland, all rights reserved.

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

syntax highlighting: