Skip Menu |

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

Report information
The Basics
Id: 104124
Status: resolved
Priority: 0/
Queue: Email-Send-SMTP-Gmail

People
Owner: Nobody in particular
Requestors: jenithasta [...] gmail.com
Cc:
AdminCc:

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



Subject: Gmail bug?
Date: Thu, 30 Apr 2015 12:44:13 +0200
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: Dan Östberg <jenithasta [...] gmail.com>
I get the following on my Windows8.1/Dwimperl machine: "Can't locate object method "send" via package "Net::SMTPS: connect: timeout" (perhaps you forgot to load "Net::SMTPS: connect: timeout"?) at gmail_sola.pl line 13. Press any key to continue . . ." when I execute the following .pl-file: "use Email::Send::SMTP::Gmail; my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', -login=>'me@gmail.com', -pass=>'pass'); $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!', -body=>'Just testing it', -attachments=>''); $mail->bye;" H E L P ! ! ! *Dan *
Hello, Please, set the debug option to get more details: my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', -login=>'me@gmail.com', -pass=>'pass', -debug=>1 ); Regards, Peco On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote: Show quoted text
> I get the following on my Windows8.1/Dwimperl machine: > "Can't locate object method "send" via package "Net::SMTPS: connect: > timeout" (perhaps you forgot to load "Net::SMTPS: connect: timeout"?) at > gmail_sola.pl line 13. > Press any key to continue . . ." > when I execute the following .pl-file: > "use Email::Send::SMTP::Gmail; > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > -login=>'me@gmail.com', > -pass=>'pass'); > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!', -body=>'Just > testing it', > -attachments=>''); > > $mail->bye;" > H E L P ! ! ! > *Dan *
Subject: Re: [rt.cpan.org #104124] Gmail bug?
Date: Thu, 30 Apr 2015 15:01:37 +0200
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: Dan Östberg <jenithasta [...] gmail.com>
with -debug=>1 I get: "Connecting to smtp.gmail.com using tls with LOGIN on port 25 and timeout of 60 Could not connect to SMTP server Can't locate object method "send" via package "Net::SMTPS: connect: timeout" (perhaps you forgot to load "Net::SMTPS: connect: timeout"?) at gmail_sola.pl line 14. Press any key to continue . . ." *HaD GR8:-) Dan Östberg 0730 48 36 39* 2015-04-30 14:55 GMT+02:00 Juan Jose San Martin via RT < bug-Email-Send-SMTP-Gmail@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > Hello, > > Please, set the debug option to get more details: > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > -login=>'me@gmail.com', > -pass=>'pass', > -debug=>1 ); > > > Regards, > Peco > > On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote:
> > I get the following on my Windows8.1/Dwimperl machine: > > "Can't locate object method "send" via package "Net::SMTPS: connect: > > timeout" (perhaps you forgot to load "Net::SMTPS: connect: timeout"?) at > > gmail_sola.pl line 13. > > Press any key to continue . . ." > > when I execute the following .pl-file: > > "use Email::Send::SMTP::Gmail; > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > -login=>'me@gmail.com', > > -pass=>'pass'); > > > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!', -body=>'Just > > testing it', > > -attachments=>''); > > > > $mail->bye;" > > H E L P ! ! ! > > *Dan *
> > > >
Hi. Seems you haven't got access to Google SMTP from the where you are running the script. Try: telnet smtp.gmail.com 25 You should get something like: Trying 64.233.166.108... Connected to gmail-smtp-msa.l.google.com. Escape character is '^]'. 220 mx.google.com ESMTP z12sm3387347wjw.39 - gsmtp Regards, Peco On Thu Apr 30 09:01:57 2015, jenithasta@gmail.com wrote: Show quoted text
> with -debug=>1 I get: > "Connecting to smtp.gmail.com using tls with LOGIN on port 25 and timeout > of 60 > Could not connect to SMTP server > Can't locate object method "send" via package "Net::SMTPS: connect: > timeout" (perhaps you forgot to load "Net::SMTPS: connect: timeout"?) at > gmail_sola.pl line 14. > Press any key to continue . . ." > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > 2015-04-30 14:55 GMT+02:00 Juan Jose San Martin via RT < > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > Hello, > > > > Please, set the debug option to get more details: > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > -login=>'me@gmail.com', > > -pass=>'pass', > > -debug=>1 ); > > > > > > Regards, > > Peco > > > > On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote:
> > > I get the following on my Windows8.1/Dwimperl machine: > > > "Can't locate object method "send" via package "Net::SMTPS: connect: > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect: timeout"?) at > > > gmail_sola.pl line 13. > > > Press any key to continue . . ." > > > when I execute the following .pl-file: > > > "use Email::Send::SMTP::Gmail; > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > > -login=>'me@gmail.com', > > > -pass=>'pass'); > > > > > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!', -body=>'Just > > > testing it', > > > -attachments=>''); > > > > > > $mail->bye;" > > > H E L P ! ! ! > > > *Dan *
> > > > > > > >
Subject: Re: [rt.cpan.org #104124] Gmail bug?
Date: Thu, 30 Apr 2015 16:12:42 +0200
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: Dan Östberg <jenithasta [...] gmail.com>
The only thing I get is that the connection failed;-) 2015-04-30 15:45 GMT+02:00 Juan Jose San Martin via RT < bug-Email-Send-SMTP-Gmail@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > Hi. > > Seems you haven't got access to Google SMTP from the where you are running > the script. > > Try: > telnet smtp.gmail.com 25 > > You should get something like: > > Trying 64.233.166.108... > Connected to gmail-smtp-msa.l.google.com. > Escape character is '^]'. > 220 mx.google.com ESMTP z12sm3387347wjw.39 - gsmtp > > Regards, > Peco > > > On Thu Apr 30 09:01:57 2015, jenithasta@gmail.com wrote:
> > with -debug=>1 I get: > > "Connecting to smtp.gmail.com using tls with LOGIN on port 25 and
> timeout
> > of 60 > > Could not connect to SMTP server > > Can't locate object method "send" via package "Net::SMTPS: connect: > > timeout" (perhaps you forgot to load "Net::SMTPS: connect: timeout"?) at > > gmail_sola.pl line 14. > > Press any key to continue . . ." > > > > > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > > > > 2015-04-30 14:55 GMT+02:00 Juan Jose San Martin via RT < > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > Hello, > > > > > > Please, set the debug option to get more details: > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > > -login=>'me@gmail.com', > > > -pass=>'pass', > > > -debug=>1 ); > > > > > > > > > Regards, > > > Peco > > > > > > On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote:
> > > > I get the following on my Windows8.1/Dwimperl machine: > > > > "Can't locate object method "send" via package "Net::SMTPS: connect: > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> timeout"?) at
> > > > gmail_sola.pl line 13. > > > > Press any key to continue . . ." > > > > when I execute the following .pl-file: > > > > "use Email::Send::SMTP::Gmail; > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > > > -login=>'me@gmail.com', > > > > -pass=>'pass'); > > > > > > > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!',
> -body=>'Just
> > > > testing it', > > > > -attachments=>''); > > > > > > > > $mail->bye;" > > > > H E L P ! ! ! > > > > *Dan *
> > > > > > > > > > > >
> > > >
You need to access to Google's SMTP. Check your firewall or contact you sys-admin. On Thu Apr 30 10:13:00 2015, jenithasta@gmail.com wrote: Show quoted text
> The only thing I get is that the connection failed;-) > > 2015-04-30 15:45 GMT+02:00 Juan Jose San Martin via RT < > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > Hi. > > > > Seems you haven't got access to Google SMTP from the where you are running > > the script. > > > > Try: > > telnet smtp.gmail.com 25 > > > > You should get something like: > > > > Trying 64.233.166.108... > > Connected to gmail-smtp-msa.l.google.com. > > Escape character is '^]'. > > 220 mx.google.com ESMTP z12sm3387347wjw.39 - gsmtp > > > > Regards, > > Peco > > > > > > On Thu Apr 30 09:01:57 2015, jenithasta@gmail.com wrote:
> > > with -debug=>1 I get: > > > "Connecting to smtp.gmail.com using tls with LOGIN on port 25 and
> > timeout
> > > of 60 > > > Could not connect to SMTP server > > > Can't locate object method "send" via package "Net::SMTPS: connect: > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect: timeout"?) at > > > gmail_sola.pl line 14. > > > Press any key to continue . . ." > > > > > > > > > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > > > > > > > 2015-04-30 14:55 GMT+02:00 Juan Jose San Martin via RT < > > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > > >
> > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > Hello, > > > > > > > > Please, set the debug option to get more details: > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > > > -login=>'me@gmail.com', > > > > -pass=>'pass', > > > > -debug=>1 ); > > > > > > > > > > > > Regards, > > > > Peco > > > > > > > > On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote:
> > > > > I get the following on my Windows8.1/Dwimperl machine: > > > > > "Can't locate object method "send" via package "Net::SMTPS: connect: > > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> > timeout"?) at
> > > > > gmail_sola.pl line 13. > > > > > Press any key to continue . . ." > > > > > when I execute the following .pl-file: > > > > > "use Email::Send::SMTP::Gmail; > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > > > > -login=>'me@gmail.com', > > > > > -pass=>'pass'); > > > > > > > > > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!',
> > -body=>'Just
> > > > > testing it', > > > > > -attachments=>''); > > > > > > > > > > $mail->bye;" > > > > > H E L P ! ! ! > > > > > *Dan *
> > > > > > > > > > > > > > > >
> > > > > > > >
Subject: Re: [rt.cpan.org #104124] Gmail bug?
Date: Thu, 30 Apr 2015 21:23:55 +0200
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: Dan Östberg <jenithasta [...] gmail.com>
Show quoted text
>You need to access to Google's SMTP
How? Show quoted text
>Check your firewall or contact you sys-admin
I run a single computer of my own,Tthe firewall is Windows Defender and I have no sys-admin. PS Do I need a separate mail client, separate from gmail. By the way, is gmail a mail client? *Dan* 2015-04-30 17:32 GMT+02:00 Juan Jose San Martin via RT < bug-Email-Send-SMTP-Gmail@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > You need to access to Google's SMTP. > Check your firewall or contact you sys-admin. > > > On Thu Apr 30 10:13:00 2015, jenithasta@gmail.com wrote:
> > The only thing I get is that the connection failed;-) > > > > 2015-04-30 15:45 GMT+02:00 Juan Jose San Martin via RT < > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > Hi. > > > > > > Seems you haven't got access to Google SMTP from the where you are
> running
> > > the script. > > > > > > Try: > > > telnet smtp.gmail.com 25 > > > > > > You should get something like: > > > > > > Trying 64.233.166.108... > > > Connected to gmail-smtp-msa.l.google.com. > > > Escape character is '^]'. > > > 220 mx.google.com ESMTP z12sm3387347wjw.39 - gsmtp > > > > > > Regards, > > > Peco > > > > > > > > > On Thu Apr 30 09:01:57 2015, jenithasta@gmail.com wrote:
> > > > with -debug=>1 I get: > > > > "Connecting to smtp.gmail.com using tls with LOGIN on port 25 and
> > > timeout
> > > > of 60 > > > > Could not connect to SMTP server > > > > Can't locate object method "send" via package "Net::SMTPS: connect: > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> timeout"?) at
> > > > gmail_sola.pl line 14. > > > > Press any key to continue . . ." > > > > > > > > > > > > > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > > > > > > > > > > 2015-04-30 14:55 GMT+02:00 Juan Jose San Martin via RT < > > > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > > > >
> > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > > Hello, > > > > > > > > > > Please, set the debug option to get more details: > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > > > > -login=>'me@gmail.com', > > > > > -pass=>'pass', > > > > > -debug=>1 ); > > > > > > > > > > > > > > > Regards, > > > > > Peco > > > > > > > > > > On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote:
> > > > > > I get the following on my Windows8.1/Dwimperl machine: > > > > > > "Can't locate object method "send" via package "Net::SMTPS:
> connect:
> > > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> > > timeout"?) at
> > > > > > gmail_sola.pl line 13. > > > > > > Press any key to continue . . ." > > > > > > when I execute the following .pl-file: > > > > > > "use Email::Send::SMTP::Gmail; > > > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'
> smtp.gmail.com',
> > > > > > -login=>'me@gmail.com
> ',
> > > > > > -pass=>'pass'); > > > > > > > > > > > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!',
> > > -body=>'Just
> > > > > > testing it', > > > > > > -attachments=>''); > > > > > > > > > > > > $mail->bye;" > > > > > > H E L P ! ! ! > > > > > > *Dan *
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > >
Subject: Re: [rt.cpan.org #104124] Gmail bug?
Date: Fri, 1 May 2015 10:19:27 +0200
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: Dan Östberg <jenithasta [...] gmail.com>
This code solved my problem(s): "use Email::Sender::Simple qw(sendmail); use Email::Sender::Transport::SMTP (); use Email::Simple (); use Email::Simple::Creator (); my $smtpserver = 'smtpserver'; my $smtpport = 587; my $smtpuser = 'username'; my $smtppassword = 'password'; my $transport = Email::Sender::Transport::SMTP->new({ host => $smtpserver, port => $smtpport, sasl_username => $smtpuser, sasl_password => $smtppassword, }); my $email = Email::Simple->create( header => [ To => 'me@gmail.com', From => 'somebody@domain.com', Subject => 'Hi!', ], body => "This is your new password, $smtppassword!\n", ); sendmail($email, { transport => $transport });" *HaD GR8:-) Dan Östberg 0730 48 36 39* 2015-04-30 17:32 GMT+02:00 Juan Jose San Martin via RT < bug-Email-Send-SMTP-Gmail@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > You need to access to Google's SMTP. > Check your firewall or contact you sys-admin. > > > On Thu Apr 30 10:13:00 2015, jenithasta@gmail.com wrote:
> > The only thing I get is that the connection failed;-) > > > > 2015-04-30 15:45 GMT+02:00 Juan Jose San Martin via RT < > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > Hi. > > > > > > Seems you haven't got access to Google SMTP from the where you are
> running
> > > the script. > > > > > > Try: > > > telnet smtp.gmail.com 25 > > > > > > You should get something like: > > > > > > Trying 64.233.166.108... > > > Connected to gmail-smtp-msa.l.google.com. > > > Escape character is '^]'. > > > 220 mx.google.com ESMTP z12sm3387347wjw.39 - gsmtp > > > > > > Regards, > > > Peco > > > > > > > > > On Thu Apr 30 09:01:57 2015, jenithasta@gmail.com wrote:
> > > > with -debug=>1 I get: > > > > "Connecting to smtp.gmail.com using tls with LOGIN on port 25 and
> > > timeout
> > > > of 60 > > > > Could not connect to SMTP server > > > > Can't locate object method "send" via package "Net::SMTPS: connect: > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> timeout"?) at
> > > > gmail_sola.pl line 14. > > > > Press any key to continue . . ." > > > > > > > > > > > > > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > > > > > > > > > > 2015-04-30 14:55 GMT+02:00 Juan Jose San Martin via RT < > > > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > > > >
> > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > > Hello, > > > > > > > > > > Please, set the debug option to get more details: > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > > > > -login=>'me@gmail.com', > > > > > -pass=>'pass', > > > > > -debug=>1 ); > > > > > > > > > > > > > > > Regards, > > > > > Peco > > > > > > > > > > On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote:
> > > > > > I get the following on my Windows8.1/Dwimperl machine: > > > > > > "Can't locate object method "send" via package "Net::SMTPS:
> connect:
> > > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> > > timeout"?) at
> > > > > > gmail_sola.pl line 13. > > > > > > Press any key to continue . . ." > > > > > > when I execute the following .pl-file: > > > > > > "use Email::Send::SMTP::Gmail; > > > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'
> smtp.gmail.com',
> > > > > > -login=>'me@gmail.com
> ',
> > > > > > -pass=>'pass'); > > > > > > > > > > > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!',
> > > -body=>'Just
> > > > > > testing it', > > > > > > -attachments=>''); > > > > > > > > > > > > $mail->bye;" > > > > > > H E L P ! ! ! > > > > > > *Dan *
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > >
Thank you for this feedback. I see you are forcing the port 587 instead of the default one (25). You'd also do this passing the port as parameter my $mail = Email::Send::SMTP::Gmail->new( -smtp => 'smtp.gmail.com', -login => $username, -pass => $password, #-layer => 'tls', -port => 587, -debug => 1 ); On Fri May 01 04:19:36 2015, jenithasta@gmail.com wrote: Show quoted text
> This code solved my problem(s): > "use Email::Sender::Simple qw(sendmail); > use Email::Sender::Transport::SMTP (); > use Email::Simple (); > use Email::Simple::Creator (); > > my $smtpserver = 'smtpserver'; > my $smtpport = 587; > my $smtpuser = 'username'; > my $smtppassword = 'password'; > > my $transport = Email::Sender::Transport::SMTP->new({ > host => $smtpserver, > port => $smtpport, > sasl_username => $smtpuser, > sasl_password => $smtppassword, > }); > > my $email = Email::Simple->create( > header => [ > To => 'me@gmail.com', > From => 'somebody@domain.com', > Subject => 'Hi!', > ], > body => "This is your new password, $smtppassword!\n", > ); > > sendmail($email, { transport => $transport });" > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > 2015-04-30 17:32 GMT+02:00 Juan Jose San Martin via RT < > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > You need to access to Google's SMTP. > > Check your firewall or contact you sys-admin. > > > > > > On Thu Apr 30 10:13:00 2015, jenithasta@gmail.com wrote:
> > > The only thing I get is that the connection failed;-) > > > > > > 2015-04-30 15:45 GMT+02:00 Juan Jose San Martin via RT < > > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > > >
> > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > > > > Hi. > > > > > > > > Seems you haven't got access to Google SMTP from the where you are
> > running
> > > > the script. > > > > > > > > Try: > > > > telnet smtp.gmail.com 25 > > > > > > > > You should get something like: > > > > > > > > Trying 64.233.166.108... > > > > Connected to gmail-smtp-msa.l.google.com. > > > > Escape character is '^]'. > > > > 220 mx.google.com ESMTP z12sm3387347wjw.39 - gsmtp > > > > > > > > Regards, > > > > Peco > > > > > > > > > > > > On Thu Apr 30 09:01:57 2015, jenithasta@gmail.com wrote:
> > > > > with -debug=>1 I get: > > > > > "Connecting to smtp.gmail.com using tls with LOGIN on port 25 and
> > > > timeout
> > > > > of 60 > > > > > Could not connect to SMTP server > > > > > Can't locate object method "send" via package "Net::SMTPS: connect: > > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> > timeout"?) at
> > > > > gmail_sola.pl line 14. > > > > > Press any key to continue . . ." > > > > > > > > > > > > > > > > > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > > > > > > > > > > > > > 2015-04-30 14:55 GMT+02:00 Juan Jose San Martin via RT < > > > > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > > > > >
> > > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > > > > Hello, > > > > > > > > > > > > Please, set the debug option to get more details: > > > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', > > > > > > -login=>'me@gmail.com', > > > > > > -pass=>'pass', > > > > > > -debug=>1 ); > > > > > > > > > > > > > > > > > > Regards, > > > > > > Peco > > > > > > > > > > > > On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote:
> > > > > > > I get the following on my Windows8.1/Dwimperl machine: > > > > > > > "Can't locate object method "send" via package "Net::SMTPS:
> > connect:
> > > > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> > > > timeout"?) at
> > > > > > > gmail_sola.pl line 13. > > > > > > > Press any key to continue . . ." > > > > > > > when I execute the following .pl-file: > > > > > > > "use Email::Send::SMTP::Gmail; > > > > > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'
> > smtp.gmail.com',
> > > > > > > -login=>'me@gmail.com
> > ',
> > > > > > > -pass=>'pass'); > > > > > > > > > > > > > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!',
> > > > -body=>'Just
> > > > > > > testing it', > > > > > > > -attachments=>''); > > > > > > > > > > > > > > $mail->bye;" > > > > > > > H E L P ! ! ! > > > > > > > *Dan *
> > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > >
On Fri May 01 05:05:26 2015, PECO wrote: Show quoted text
> Thank you for this feedback. > > I see you are forcing the port 587 instead of the default one (25). > > You'd also do this passing the port as parameter > > my $mail = Email::Send::SMTP::Gmail->new( > -smtp => 'smtp.gmail.com', > -login => $username, > -pass => $password, > #-layer => 'tls', > -port => 587, > -debug => 1 > ); > > > On Fri May 01 04:19:36 2015, jenithasta@gmail.com wrote:
> > This code solved my problem(s): > > "use Email::Sender::Simple qw(sendmail); > > use Email::Sender::Transport::SMTP (); > > use Email::Simple (); > > use Email::Simple::Creator (); > > > > my $smtpserver = 'smtpserver'; > > my $smtpport = 587; > > my $smtpuser = 'username'; > > my $smtppassword = 'password'; > > > > my $transport = Email::Sender::Transport::SMTP->new({ > > host => $smtpserver, > > port => $smtpport, > > sasl_username => $smtpuser, > > sasl_password => $smtppassword, > > }); > > > > my $email = Email::Simple->create( > > header => [ > > To => 'me@gmail.com', > > From => 'somebody@domain.com', > > Subject => 'Hi!', > > ], > > body => "This is your new password, $smtppassword!\n", > > ); > > > > sendmail($email, { transport => $transport });" > > > > > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > > > > 2015-04-30 17:32 GMT+02:00 Juan Jose San Martin via RT < > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > You need to access to Google's SMTP. > > > Check your firewall or contact you sys-admin. > > > > > > > > > On Thu Apr 30 10:13:00 2015, jenithasta@gmail.com wrote:
> > > > The only thing I get is that the connection failed;-) > > > > > > > > 2015-04-30 15:45 GMT+02:00 Juan Jose San Martin via RT < > > > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > > > >
> > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > > > > > > > Hi. > > > > > > > > > > Seems you haven't got access to Google SMTP from the where you > > > > > are
> > > running
> > > > > the script. > > > > > > > > > > Try: > > > > > telnet smtp.gmail.com 25 > > > > > > > > > > You should get something like: > > > > > > > > > > Trying 64.233.166.108... > > > > > Connected to gmail-smtp-msa.l.google.com. > > > > > Escape character is '^]'. > > > > > 220 mx.google.com ESMTP z12sm3387347wjw.39 - gsmtp > > > > > > > > > > Regards, > > > > > Peco > > > > > > > > > > > > > > > On Thu Apr 30 09:01:57 2015, jenithasta@gmail.com wrote:
> > > > > > with -debug=>1 I get: > > > > > > "Connecting to smtp.gmail.com using tls with LOGIN on port 25 > > > > > > and
> > > > > timeout
> > > > > > of 60 > > > > > > Could not connect to SMTP server > > > > > > Can't locate object method "send" via package "Net::SMTPS: > > > > > > connect: > > > > > > timeout" (perhaps you forgot to load "Net::SMTPS: connect:
> > > timeout"?) at
> > > > > > gmail_sola.pl line 14. > > > > > > Press any key to continue . . ." > > > > > > > > > > > > > > > > > > > > > > > > *HaD GR8:-) Dan Östberg 0730 48 36 39* > > > > > > > > > > > > > > > > > > 2015-04-30 14:55 GMT+02:00 Juan Jose San Martin via RT < > > > > > > bug-Email-Send-SMTP-Gmail@rt.cpan.org>: > > > > > >
> > > > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104124 > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > Please, set the debug option to get more details: > > > > > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( > > > > > > > -smtp=>'smtp.gmail.com', > > > > > > > -login=>'me@gmail.com', > > > > > > > -pass=>'pass', > > > > > > > -debug=>1 ); > > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > > Peco > > > > > > > > > > > > > > On Thu Apr 30 06:44:34 2015, jenithasta@gmail.com wrote:
> > > > > > > > I get the following on my Windows8.1/Dwimperl machine: > > > > > > > > "Can't locate object method "send" via package > > > > > > > > "Net::SMTPS:
> > > connect:
> > > > > > > > timeout" (perhaps you forgot to load "Net::SMTPS: > > > > > > > > connect:
> > > > > timeout"?) at
> > > > > > > > gmail_sola.pl line 13. > > > > > > > > Press any key to continue . . ." > > > > > > > > when I execute the following .pl-file: > > > > > > > > "use Email::Send::SMTP::Gmail; > > > > > > > > > > > > > > > > my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'
> > > smtp.gmail.com',
> > > > > > > > -login=>'me@gmail.com
> > > ',
> > > > > > > > -pass=>'pass'); > > > > > > > > > > > > > > > > $mail->send(-to=>'joedoe@domai.com', -subject=>'Hello!',
> > > > > -body=>'Just
> > > > > > > > testing it', > > > > > > > > -attachments=>''); > > > > > > > > > > > > > > > > $mail->bye;" > > > > > > > > H E L P ! ! ! > > > > > > > > *Dan *
> > > > > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > >