[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] use NET::SMTP::TLS


Hello group

I have a question, has anyone used Net::Send::SMTP::TLS before.

I want to use Gmails email service for sending mail. (Its great!!)

Google Apps allows me to host my domains email with them.
So I would like to send all mail throUgh their sevice.

Net::Send::SMTP::TLS

use Email::Send;

    my $mailer = Email::Send->new( {
        mailer => 'SMTP::TLS',
        mailer_args => [
            Host => 'smtp.gmail.com',
            Port => 587,
            User => 'suppressed',
            Password => 'password',
            Hello => 'fayland.org',
        ]
    } );

    use Email::Simple::Creator; # or other Email::
    my $email = Email::Simple->create(
        header => [
            From    => 'suppressed',
            To      => 'suppressed',
            Subject => 'Subject title',
        ],
        body => 'Content.',
    );

    eval { $mailer->send($email) };
    die

 "Error sending email: $@" if $@;

Has anyone does this. If so could you give example

I've tried to setup postfix for relaying. IC I think has a problem
with postfix and relaying
So I thought I would just go around the problem and use perl to send to gmail


Thanks you

Scott Andreas

scott.andreas at gmail.com

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.