-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 b67sm22450316yhc.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 PLAIN-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: Net::SMTPS=GLOB(0x6003e5128)<<< 250 2.1.0 OK b67sm22450316yhc.16 - gsmtp Net::SMTPS=GLOB(0x6003e5128)>>> RCPT TO: Net::SMTPS=GLOB(0x6003e5128)<<< 250 2.1.5 OK b67sm22450316yhc.16 - gsmtp Net::SMTPS=GLOB(0x6003e5128)>>> DATA Net::SMTPS=GLOB(0x6003e5128)<<< 354 Go ahead b67sm22450316yhc.16 - gsmtp 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
Bye! Net::SMTPS=GLOB(0x6003e5128)>>> . Net::SMTPS=GLOB(0x6003e5128)<<< 250 2.0.0 OK 1405864442 b67sm22450316yhc.16 - gsmtp Net::SMTPS=GLOB(0x6003e5128)>>> QUIT Net::SMTPS=GLOB(0x6003e5128)<<< 221 2.0.0 closing connection b67sm22450316yhc.16 - gsmtp