http://www.perlmonks.org?node_id=573827


in reply to Re^2: Using Email::Stuff to send SMTP mail through GMail
in thread Using Email::Stuff to send SMTP mail through GMail

Well I'm not doing any better than you, although being on Win32 may distort things. Got some error messages though...

I ended up spliting up the call string in order to intervene in the setup steps:

my $objst = Email::Stuff ->to('tshinnic@io.com') ->from('tshinnic@gmail.com') ->subject('Test Subject') ->text_body('This is a test.'); # This forces Net::SMTP::SSL to be loaded $objst->using( 'SMTP', ssl => 1 ); # Which allows us to do this ... $IO::Socket::SSL::DEBUG = 1; my $rc = $objst->send('SMTP', ssl => 1, Host => 'smtp.gmail.com', PeerPort => 465, username => 'tshinnic', password => 'xxx', Debug => 1, );
which finally gets us an actual error message!
CA file certs/my-ca.pem not found, using CA path instead. IO::Socket::INET configuration failederror:00000000:lib(0):func(0):rea +son(0) at C:/Perl587/site/lib/Email/Send/SMTP.pm line 37
which is of very little help to me, anyway...

After taking the same extraordinary measures, what error messages do you see?

Replies are listed 'Best First'.
Re^4: Using Email::Stuff to send SMTP mail through GMail
by jdtoronto (Prior) on Sep 20, 2006 at 02:09 UTC
    Doesn't matter if it is on Win32 or *nix, I could not build Email::Stuff onWin32, so I tried it on one of my CentOS testing servers:
    #!/usr/bin/perl use warnings; use strict; use Email::Stuff; my $objst = Email::Stuff ->to('jophnday@wordsnimages.com') ->from('praecipuus@gmail.com') ->subject('Test Subject') ->text_body('This is a test.'); # This forces Net::SMTP::SSL to be loaded $objst->using( 'SMTP', ssl => 1 ); # Which allows us to do this ... $IO::Socket::SSL::DEBUG = 1; my $rc = $objst->send('SMTP', ssl => 1, Host => 'smtp.gmail.com', PeerPort => 465, username => 'praecipuus', password => 'xx***xx', Debug => 1, );
    Result:
    Name "IO::Socket::SSL::DEBUG" used only once: possible typo at emailst +uff.pl line 13. CA file certs/my-ca.pem not found, using CA path instead. IO::Socket::INET configuration failederror:00000000:lib(0):func(0):rea +son(0) at /usr/lib/perl5/site_perl/5.8.7/Email/Send/SMTP.pm line 37
    jdtoronto
      Same here. Exact same error message. My research has led me nowhere to debug that.

        This is line 37:

        $SMTP = Net::SMTP::SSL->new($host, %args);

        No freaking idea.

Re^4: Using Email::Stuff to send SMTP mail through GMail
by initself (Monk) on Sep 20, 2006 at 00:42 UTC
    That is exactly the same error message I get now. Off the top of my head, I have no idea what it means. Off to figure it out!