From a74393b09212727b34f3a6e6358ca89865678938 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 16 Dec 2008 21:44:42 +0000 Subject: [PATCH] Send CRLF in the same packet as command to avoid problems with some servers. --- src/net/smtp/SMTPTransport.cpp | 6 ++++-- 1 file 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); }