Return failed email address in exception for RCPT TO.

This commit is contained in:
Vincent Richard 2010-10-20 09:37:39 +00:00
parent 6ba1044d87
commit 7e5a9a404f

View File

@ -583,7 +583,7 @@ void SMTPTransport::send(const mailbox& expeditor, const mailboxList& recipients
if ((resp = readResponse())->getCode() != 250)
{
internalDisconnect();
throw exceptions::command_error("RCPT TO", resp->getText());
throw exceptions::command_error("RCPT TO", resp->getText(), mbox.getEmail());
}
}