swiftmailer/swiftmailer — Issue #164: Exception messages from _doRcptToCommand should not be discarded
Author: kdrobec
Created: 2012-02-15 12:10:43+00:00
State: open

AbstractSmtpTransport::_doMailTransaction catches instances of Swift_TransportException yielded by calls to _doRcptToCommand.

This hides information the mail server is trying to convey about the reasons for rejecting a recipient. This makes debugging harder and hinders informative error reporting.

A possible solution would be to either change the filling of $failedRecipients (which could break legacy client code) or extend the interface definition by (a) an additional feedback array or (b) an optional flag to select an "extended" format for $failedRecipients.