texasag90 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to access my GMail account via IMAP/SSL and Perl using the following simple code. It is not working, and I cannot figure out why for the life of me. Any suggestions?
error is: new(): Unable to connect to imap.gmail.com: IO::Socket::SSL: connect: Connection timed out at ./imap-test5.pl line 6.
Thanks! Mark
Here is the code
#!/usr/local/bin/perl use Mail::IMAPClient; my $client = Mail::IMAPClient->new( Server => 'imap.gmail.com', Port => 993, Ssl => 1, User => 'foo@gmail.com', Password => 'foobar', ) or die "new(): $@"; print "I'm authenticated\n" if $client->IsAuthenticated();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GMail IMAP SSL and Perl
by marto (Cardinal) on Jun 24, 2010 at 17:25 UTC | |
by texasag90 (Initiate) on Jun 24, 2010 at 21:22 UTC | |
by marto (Cardinal) on Jun 25, 2010 at 09:05 UTC | |
|
Re: GMail IMAP SSL and Perl
by MidLifeXis (Monsignor) on Jun 24, 2010 at 17:26 UTC | |
by Anonymous Monk on Jul 07, 2010 at 20:26 UTC |