Maktub has asked for the wisdom of the Perl Monks concerning the following question:
Hi.
Im' tring to send email with perl with my gmail account and insert a link in email's body.
I try many codes, but i can "send email with gmail NO Links" or "send html email but NO with gmail account". I google for two days, search in perlmonks but I cannot send email.
I use:1. Email::Send and I can send email to gmail, but with simple body, no html.
my $sender = Email::Send->new( { mailer => 'Gmail', mailer_args => [ username => $username, password => $password, ] } );
2. I use Mime::Lite but i have this Error: SMTP auth() command not supported on smtp.gmail.com:587
MIME::Lite->send('smtp', 'smtp.gmail.com:587', Timeout => 60,AuthUser= +>$user, AuthPass=>$pass);$msg->send();
3. I use Net::SMTP::TLS but but i have this Error: Couldn't start TLS: Cannot determine peer hostname for verification
my $smtp = new Net::SMTP::TLS( 'smtp.gmail.com', Hello => 'test.org', Port => 587, User => $user, Password=> $password, Timeout => 30 );
Someone can help please?
Thanks in advice. Andrea
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Send Email to GMAIL with html body
by Corion (Patriarch) on Mar 23, 2013 at 08:59 UTC | |
by Maktub (Initiate) on Mar 23, 2013 at 15:31 UTC | |
by marto (Cardinal) on Mar 23, 2013 at 16:29 UTC | |
Re: Send Email to GMAIL with html body
by stefbv (Curate) on Mar 23, 2013 at 11:03 UTC | |
by Maktub (Initiate) on Mar 23, 2013 at 16:13 UTC | |
Re: Send Email to GMAIL with html body
by hdb (Monsignor) on Mar 23, 2013 at 16:51 UTC | |
by Maktub (Initiate) on Mar 23, 2013 at 16:59 UTC | |
Re: Send Email to GMAIL with html body
by Anonymous Monk on Mar 30, 2014 at 16:36 UTC |
Back to
Seekers of Perl Wisdom