diff options
| author | Vincent Richard <[email protected]> | 2008-12-16 22:44:42 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2008-12-16 22:44:42 +0100 |
| commit | a74393b09212727b34f3a6e6358ca89865678938 (patch) | |
| tree | 1073fffa185fb07c9c53b005c988aacf4e207960 /src | |
| parent | Missing #include for GCC 4.4 (thanks to Martin Michlmayr). (diff) | |
| download | vmime-a74393b09212727b34f3a6e6358ca89865678938.tar.gz vmime-a74393b09212727b34f3a6e6358ca89865678938.zip | |
Send CRLF in the same packet as command to avoid problems with some servers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/net/smtp/SMTPTransport.cpp | 6 |
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); } |
