Send CRLF in the same packet as command to avoid problems with some servers.
This commit is contained in:
parent
d9c3a8eda0
commit
a74393b092
@ -617,8 +617,10 @@ void SMTPTransport::send(const mailbox& expeditor, const mailboxList& recipients
|
|||||||
|
|
||||||
void SMTPTransport::sendRequest(const string& buffer, const bool end)
|
void SMTPTransport::sendRequest(const string& buffer, const bool end)
|
||||||
{
|
{
|
||||||
m_socket->send(buffer);
|
if (end)
|
||||||
if (end) m_socket->send("\r\n");
|
m_socket->send(buffer + "\r\n");
|
||||||
|
else
|
||||||
|
m_socket->send(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user