diff options
author | Vincent Richard <[email protected]> | 2013-02-17 20:14:56 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-02-17 20:14:56 +0000 |
commit | 281300ed6a6b6cccc19c60d75aa3f7af182b5c58 (patch) | |
tree | b73e2d4952a9f18dc2eb28219898db55df391508 | |
parent | Reset SMTP session state (using RSET command) if transport is being reused. (diff) | |
download | vmime-281300ed6a6b6cccc19c60d75aa3f7af182b5c58.tar.gz vmime-281300ed6a6b6cccc19c60d75aa3f7af182b5c58.zip |
SMTP response code 251 for RCPT TO is now treated as successful.
-rw-r--r-- | src/net/smtp/SMTPTransport.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/smtp/SMTPTransport.cpp b/src/net/smtp/SMTPTransport.cpp index f1fa76aa..b95321f9 100644 --- a/src/net/smtp/SMTPTransport.cpp +++ b/src/net/smtp/SMTPTransport.cpp @@ -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()); |