diff options
author | Vincent Richard <[email protected]> | 2010-12-08 08:52:54 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2010-12-08 08:52:54 +0000 |
commit | 20ba86512f9a8c81f5e323c1d321ca049d48a47d (patch) | |
tree | ec4c1914e39391522761a4477b71fb895de96a83 | |
parent | Updated deprecated function. (diff) | |
download | vmime-20ba86512f9a8c81f5e323c1d321ca049d48a47d.tar.gz vmime-20ba86512f9a8c81f5e323c1d321ca049d48a47d.zip |
No extra space between ':' and '<' in MAIL FROM and RCPT TO. Wait for server response after QUIT and before closing connection.
-rw-r--r-- | src/net/smtp/SMTPTransport.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/smtp/SMTPTransport.cpp b/src/net/smtp/SMTPTransport.cpp index 204daae6..d9fb7b86 100644 --- a/src/net/smtp/SMTPTransport.cpp +++ b/src/net/smtp/SMTPTransport.cpp @@ -516,6 +516,7 @@ void SMTPTransport::internalDisconnect() try { sendRequest("QUIT"); + readResponse(); } catch (exception&) { @@ -565,7 +566,7 @@ void SMTPTransport::send(const mailbox& expeditor, const mailboxList& recipients // Emit the "MAIL" command ref <SMTPResponse> resp; - sendRequest("MAIL FROM: <" + expeditor.getEmail() + ">"); + sendRequest("MAIL FROM:<" + expeditor.getEmail() + ">"); if ((resp = readResponse())->getCode() != 250) { @@ -578,7 +579,7 @@ void SMTPTransport::send(const mailbox& expeditor, const mailboxList& recipients { const mailbox& mbox = *recipients.getMailboxAt(i); - sendRequest("RCPT TO: <" + mbox.getEmail() + ">"); + sendRequest("RCPT TO:<" + mbox.getEmail() + ">"); if ((resp = readResponse())->getCode() != 250) { |