From 6ea91ad3cb3ea6600fa0241927a7648f78c10918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20T=C5=91k=C3=A9s?= Date: Thu, 1 Jun 2017 18:19:37 +0300 Subject: [PATCH] Issue #41 - remove extra space from MAIL FROM and RCPT TO commands --- src/smtpclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smtpclient.cpp b/src/smtpclient.cpp index 11e86b9..507c701 100644 --- a/src/smtpclient.cpp +++ b/src/smtpclient.cpp @@ -355,7 +355,7 @@ void SmtpClient::changeState(SmtpClient::ClientState state) { /* --- MAIL --- */ case _MAIL_0_FROM: - sendMessage("MAIL FROM: <" + email->getSender().getAddress() + ">"); + sendMessage("MAIL FROM:<" + email->getSender().getAddress() + ">"); break; case _MAIL_1_RCPT_INIT: @@ -383,7 +383,7 @@ void SmtpClient::changeState(SmtpClient::ClientState state) { case _MAIL_2_RCPT: if (addressIt != addressItEnd) { - sendMessage("RCPT TO: <" + addressIt->getAddress() + ">"); + sendMessage("RCPT TO:<" + addressIt->getAddress() + ">"); addressIt++; } else { changeState(_MAIL_1_RCPT_INIT);