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. AndreaIn reply to Send Email to GMAIL with html body by Maktub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |