Skip Menu |

This queue is for tickets about the Net-SMTP-TLS CPAN distribution.

Report information
The Basics
Id: 81215
Status: new
Priority: 0/
Queue: Net-SMTP-TLS

Owner: Nobody in particular
Requestors: TONYB [...]

Bug Information
Severity: Important
Broken in: 0.12
Fixed in: (no value)

Subject: Multiline SMTP Service ready bug
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1106
I've recently found and fixed a bug in this module when connecting to some SMTP servers. I've documented this issue in more detail here: TL;DR: Multiline SMTP Service Ready Responses (220 status) cause the connection to fail, as only the first line is read on connect, leaving the additional lines in the buffer. Below I've included my fix. $ diff Net-SMTP-TLS-0.12/lib/Net/SMTP/ Net-SMTP-TLS-0.12- fixed/lib/Net/SMTP/ 117,121c117,126 < # read the line immediately after connecting < my ($rsp,$txt) = $me->_response(); < if(not $rsp == 220){ < croak "Could not connect to SMTP server: $host $txt\n"; < } --- Show quoted text
> # read the line(s) immediately after connecting > my $rsp; > my $txt; > my $more; > do { > ($rsp,$txt,$more) = $me->_response(); > if(not $rsp == 220){ > croak "Could not connect to SMTP server: $host
$txt\n"; Show quoted text
> } > } while ($more eq '-');

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to