Subject: | Bug Report |
Date: | Thu, 28 Jan 2016 22:50:21 +0300 |
To: | <bug-Net-SMTP-Pipelining [...] rt.cpan.org> |
From: | "Igor Kravets" <tsol [...] tsol.spb.ru> |
Pipelining does not work with SSL enabled. It looks like Net::SMTP super constructor overrides the
main object to Net::SMTP::_SSL when 'SSL => 1' parameter is specified which leads to
the object don't have pipelining methods anymore.
My Code Is:
use Net::SMTP::Pipelining;
...
$server = Net::SMTP::Pipelining->new( Host => 'smtp.mail.ru', Port => 465, Timeout => 20, SSL => 1, Debug => 1) ) );
...
$server->pipeline({
mail => $from,
to => $to,
data => $data
})
Here is the debug:
et::SMTP::_SSL>>> Net::SMTP::_SSL
Net::SMTP::_SSL>>> IO::Socket::SSL(2.022)
Net::SMTP::_SSL>>> IO::Socket::INET(1.31)
Net::SMTP::_SSL>>> IO::Socket(1.31)
Net::SMTP::_SSL>>> IO::Handle(1.28)
Net::SMTP::_SSL>>> Exporter(5.70)
Net::SMTP::_SSL>>> Net::SMTP(3.08)
Net::SMTP::_SSL>>> Net::Cmd(3.08)
Net::SMTP::_SSL=GLOB(0x998b3f8)<<< 220 smtp13.mail.ru ESMTP readyM
Net::SMTP::_SSL=GLOB(0x998b3f8)>>> EHLO localhost.localdomainM
Net::SMTP::_SSL=GLOB(0x998b3f8)<<< 250-smtp13.mail.ruM
Net::SMTP::_SSL=GLOB(0x998b3f8)<<< 250-SIZE 73400320M
Net::SMTP::_SSL=GLOB(0x998b3f8)<<< 250-8BITMIMEM
Net::SMTP::_SSL=GLOB(0x998b3f8)<<< 250-PIPELININGM
Net::SMTP::_SSL=GLOB(0x998b3f8)<<< 250 AUTH PLAIN LOGIN XOAUTH2M
Net::SMTP::_SSL=GLOB(0x998b3f8)>>> AUTH PLAIN bWFpbGVyQHNsZXRhdG8ucnAWsdaW8SsZXRhdG8ucnUAcXdlcnR5MTIzNCE=M
Net::SMTP::_SSL=GLOB(0x998b3f8)<<< 235 Authentication succeededM
Can't locate object method "pipeline" via package "Net::SMTP::_SSL" at ./rsmtp.pl line 266.