aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/smtp/SMTPTransport.cpp3
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());