Return failed email address in exception for RCPT TO.
This commit is contained in:
parent
6ba1044d87
commit
7e5a9a404f
@ -583,7 +583,7 @@ void SMTPTransport::send(const mailbox& expeditor, const mailboxList& recipients
|
|||||||
if ((resp = readResponse())->getCode() != 250)
|
if ((resp = readResponse())->getCode() != 250)
|
||||||
{
|
{
|
||||||
internalDisconnect();
|
internalDisconnect();
|
||||||
throw exceptions::command_error("RCPT TO", resp->getText());
|
throw exceptions::command_error("RCPT TO", resp->getText(), mbox.getEmail());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user