Skip Menu |

This queue is for tickets about the Email-Send-SMTP-Gmail CPAN distribution.

Report information
The Basics
Id: 65083
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Email-Send-SMTP-Gmail

People
Owner: PECO [...] cpan.org
Requestors: chamberske [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Authentication (SMTP) failed
Date: Mon, 24 Jan 2011 18:57:44 -0600
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: Kevin Chambers <chamberske [...] gmail.com>
So I typed the code just like you had it on your web site, changed login and password and added debug. Here is the debug message I am getting: Net::SMTP::SSL>>> Net::SMTP::SSL(1.01) Net::SMTP::SSL>>> IO::Socket::SSL(1.31) Net::SMTP::SSL>>> IO::Socket::INET(1.31) Net::SMTP::SSL>>> IO::Socket(1.31) Net::SMTP::SSL>>> IO::Handle(1.28) Net::SMTP::SSL>>> Exporter(5.63) Net::SMTP::SSL>>> Net::Cmd(2.29) Net::SMTP::SSL=GLOB(0xb74278)<<< 220 mx.google.com ESMTP c30sm16924982anc.0 Net::SMTP::SSL=GLOB(0xb74278)>>> EHLO localhost.localdomain Net::SMTP::SSL=GLOB(0xb74278)<<< 250-mx.google.com at your service, [x.x.x.x] (myip was here) Net::SMTP::SSL=GLOB(0xb74278)<<< 250-SIZE 35651584 Net::SMTP::SSL=GLOB(0xb74278)<<< 250-8BITMIME Net::SMTP::SSL=GLOB(0xb74278)<<< 250-AUTH LOGIN PLAIN XOAUTH Net::SMTP::SSL=GLOB(0xb74278)<<< 250 ENHANCEDSTATUSCODES Authentication (SMTP) failed Here is the code. I am using Ubuntu 10.04 and perl version 5.10.1. #!/usr/bin/perl use strict; use warnings; use Email::Send::SMTP::Gmail; my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'gmail.com', -login=>' ', -pass=>' ', -debug=>'1' ); $mail->send( -to=>'chamberske@gmail.com', -replyto=>'chamberske@gmail.com', -subject=>'Mailing', -verbose=>'1', -body=>'Test'); $mail->bye; Thanks for your help. Kevin
Hi Kevin. Sorry, I found a bug related to the dependencies (I'm using the same machine for development and testing and it's not easy to handle this ;-) Anyway, you need to install libnet-perl-smtpauth (available in Ubuntu 10.04 repos). sudo apt-get install libnet-perl-smtpauth I'll upload a new version of Gmail.pm with this error corrected soon. Thanks and hope you enjoy my contribution. Peco