From 6b676827fed3fb8d4580cd88bf62291ca4cbec1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20T=C5=91k=C3=A9s?= Date: Thu, 1 Jun 2017 18:20:49 +0300 Subject: [PATCH] Issue #41 - remove extra space from MAIL FROM and RCPT TO commands --- src/smtpclient.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/smtpclient.cpp b/src/smtpclient.cpp index af77207..43b6741 100644 --- a/src/smtpclient.cpp +++ b/src/smtpclient.cpp @@ -364,8 +364,8 @@ bool SmtpClient::sendMail(MimeMessage& email) // To (primary recipients) for (it = email.getRecipients().begin(), itEnd = email.getRecipients().end(); it != itEnd; ++it) - { - sendMessage("RCPT TO: <" + (*it)->getAddress() + ">"); + + sendMessage("RCPT TO:<" + (*it)->getAddress() + ">"); waitForResponse(); if (responseCode != 250) return false; @@ -375,7 +375,7 @@ bool SmtpClient::sendMail(MimeMessage& email) for (it = email.getRecipients(MimeMessage::Cc).begin(), itEnd = email.getRecipients(MimeMessage::Cc).end(); it != itEnd; ++it) { - sendMessage("RCPT TO: <" + (*it)->getAddress() + ">"); + sendMessage("RCPT TO:<" + (*it)->getAddress() + ">"); waitForResponse(); if (responseCode != 250) return false;