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