SMTP response code 251 for RCPT TO is now treated as successful.

This commit is contained in:
Vincent Richard 2013-02-17 21:14:56 +01:00
parent 0757efad0d
commit 281300ed6a

View File

@ -627,7 +627,8 @@ void SMTPTransport::send(const mailbox& expeditor, const mailboxList& recipients
{
commands->writeToSocket(m_socket);
if ((resp = readResponse())->getCode() != 250)
if ((resp = readResponse())->getCode() != 250 &&
(resp = readResponse())->getCode() != 251)
{
internalDisconnect();
throw exceptions::command_error(commands->getLastCommandSent()->getText(), resp->getText());