Send CRLF in the same packet as command to avoid problems with some servers.

This commit is contained in:
Vincent Richard 2008-12-16 21:44:42 +00:00
parent d9c3a8eda0
commit a74393b092

View File

@ -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);
}