Add these lines
-layer=> 'ssl', -port=> 465, -debug=> 1, You will get similar if it works: Connecting to smtp.gmail.com using ssl with LOGIN Net::SMTPS>>> Net::SMTPS(0.03) Net::SMTPS>>> IO::Socket::INET(1.31) Net::SMTPS>>> IO::Socket(1.32) Net::SMTPS>>> IO::Handle(1.31) Net::SMTPS>>> Exporter(5.64_03) Net::SMTPS>>> Net::SMTP(2.31) Net::SMTPS>>> Net::Cmd(2.29) Net::SMTPS=GLOB(0x6003e5128)<<< 220 mx.google.com ESMTP b67sm22450316y +hc.16 - gsmtp Net::SMTPS=GLOB(0x6003e5128)>>> EHLO localhost.localdomain Net::SMTPS=GLOB(0x6003e5128)<<< 250-mx.google.com at your service, [99 +.189.126.205] Net::SMTPS=GLOB(0x6003e5128)<<< 250-SIZE 35882577 Net::SMTPS=GLOB(0x6003e5128)<<< 250-8BITMIME Net::SMTPS=GLOB(0x6003e5128)<<< 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PL +AIN-CLIENTTOKEN Net::SMTPS=GLOB(0x6003e5128)<<< 250-ENHANCEDSTATUSCODES Net::SMTPS=GLOB(0x6003e5128)<<< 250 CHUNKING Net::SMTPS=GLOB(0x6003e5128)>>> AUTH LOGIN Net::SMTPS=GLOB(0x6003e5128)<<< 334 VXNlcm5hbWU6 Net::SMTPS=GLOB(0x6003e5128)>>> dGN4bmllbWFuQGdtYWlsLmNvbQ== Net::SMTPS=GLOB(0x6003e5128)<<< 334 UGFzc3dvcmQ6 Net::SMTPS=GLOB(0x6003e5128)>>> bGE1dmVnYTU= Net::SMTPS=GLOB(0x6003e5128)<<< 235 2.7.0 Accepted Net::SMTPS=GLOB(0x6003e5128)>>> MAIL FROM:<mail@gmail.com> Net::SMTPS=GLOB(0x6003e5128)<<< 250 2.1.0 OK b67sm22450316yhc.16 - gsm +tp Net::SMTPS=GLOB(0x6003e5128)>>> RCPT TO:<mail@xxx.com> Net::SMTPS=GLOB(0x6003e5128)<<< 250 2.1.5 OK b67sm22450316yhc.16 - gsm +tp Net::SMTPS=GLOB(0x6003e5128)>>> DATA Net::SMTPS=GLOB(0x6003e5128)<<< 354 Go ahead b67sm22450316yhc.16 - gs +mtp Net::SMTPS=GLOB(0x6003e5128)>>> From: address@gmail.com Net::SMTPS=GLOB(0x6003e5128)>>> To: send_to@xxx.com Net::SMTPS=GLOB(0x6003e5128)>>> Reply-To: address@gmail.com Net::SMTPS=GLOB(0x6003e5128)>>> Subject: Hello! Net::SMTPS=GLOB(0x6003e5128)>>> Date: Sun, 20 Jul 2014 08:53:59 -0500 Net::SMTPS=GLOB(0x6003e5128)>>> MIME-Version: 1.0 Net::SMTPS=GLOB(0x6003e5128)>>> Content-Type: text/html; charset=UTF-8 Net::SMTPS=GLOB(0x6003e5128)>>> Just testing it<br>Bye! Net::SMTPS=GLOB(0x6003e5128)>>> . Net::SMTPS=GLOB(0x6003e5128)<<< 250 2.0.0 OK 1405864442 b67sm22450316y +hc.16 - gsmtp Net::SMTPS=GLOB(0x6003e5128)>>> QUIT Net::SMTPS=GLOB(0x6003e5128)<<< 221 2.0.0 closing connection b67sm2245 +0316yhc.16 - gsmtp

In reply to Re: Problem using Gmail Send by tbone654
in thread Problem using Gmail Send by IvanH

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.