Skip Menu |

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 43459
Status: resolved
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: vz-cpan [...] zeitlins.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 3.06



Subject: Impossible to get reply to failed EHLO/HELO
If the server returns an error (e.g. 554) in reply to our HELO, construction of the Net::SMTP object fails and the error is lost and can't be retrieved using Net::Cmd::response() because there is no object to call it for. It would be nice if there were a ctor version which wouldn't call hello() but would allow to do it manually from the outside (besides, currently hello() is rather useless as you can never call it). The simplest way to implement it could be to provide a new NoHello option or maybe treat empty value of Hello (as opposed to undefined) as meaning this. If either of these solutions is acceptable I could provide a patch implementing it, please let me know if you'd be interested. Thanks! VZ
Right now, it appears that getting a "554 Sorry" error results in this message in $@: "Net::SMTP: 554 Sorry".
Thanks for the suggestion. This has actually already been done: A SendHello option was added to the ctor in version 3.06.