Subject: | Email::Send::SMTP should throw clearer errors if there's only one RCPT TO and it fails |
Date: | Tue, 10 Oct 2006 02:54:58 -0700 |
To: | bug-Email-Send [...] rt.cpan.org |
From: | Max Kanat-Alexander <mkanat [...] bugzilla.org> |
Modern mailers always accept MAIL FROM, and wait to fail until after
you've said RCPT TO.
So, if your MAIL FROM is bad, and you only have one RCPT TO, then
Email::Send::SMTP says "No valid recipients," which is very confusing.
Instead, if there's only one RCPT TO, and it fails (that is, if @to ==
@bad == 1) it would be really nice if we could actually return the exact
message that the server sent.