aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2008-12-16 21:44:42 +0000
committerVincent Richard <[email protected]>2008-12-16 21:44:42 +0000
commita74393b09212727b34f3a6e6358ca89865678938 (patch)
tree1073fffa185fb07c9c53b005c988aacf4e207960
parentMissing #include for GCC 4.4 (thanks to Martin Michlmayr). (diff)
downloadvmime-a74393b09212727b34f3a6e6358ca89865678938.tar.gz
vmime-a74393b09212727b34f3a6e6358ca89865678938.zip
Send CRLF in the same packet as command to avoid problems with some servers.
-rw-r--r--src/net/smtp/SMTPTransport.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/smtp/SMTPTransport.cpp b/src/net/smtp/SMTPTransport.cpp
index 3ce8d217..5ad8d70d 100644
--- a/src/net/smtp/SMTPTransport.cpp
+++ b/src/net/smtp/SMTPTransport.cpp
@@ -617,8 +617,10 @@ void SMTPTransport::send(const mailbox& expeditor, const mailboxList& recipients
void SMTPTransport::sendRequest(const string& buffer, const bool end)
{
- m_socket->send(buffer);
- if (end) m_socket->send("\r\n");
+ if (end)
+ m_socket->send(buffer + "\r\n");
+ else
+ m_socket->send(buffer);
}