In the past I could send emails using sendEmail.pl. I recently was forced to upgrade to Windows 10, and I changed to Strawberry instead of ActivePerl. Meanwhile I think Gmail disabled SSL. The result is I can't get email working. My latest attempt was this for a start:

use strict; use warnings; use Email::Send::SMTP::Gmail; my ($mail,$error)=Email::Send::SMTP::Gmail->new ( -smtp=>'smtp.gmail.com', -login=>'MYGMAILNAME@gmail.com', -pass=>'MYPASSWORD', -port=>587, -layer=> 'tls', -verbose=>1, -debug=>1 );

The result is 19 good messages followed by 2 bad messages. Starting at message 18, here's what I see:

Net::SMTPS=GLOB(0x2c8b140>>>> STARTTLS Net::SMTPS=GLOB(0x2c8b140>>>> 220 2.0.0 Ready to start TLS DEBUG: .../IO/Socket/SSL.pm:525 global error: SSL Version SSLv2 not su +pported Could not connect to SMTP server

Why is it still referring to SSL and how did port 525 get there? Please give me a simple solution, as I'm 75 years old and running out of time. Thanks.


In reply to Problem sending Gmail from Widows 10 by haprst

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.