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;