Issue #41 - remove extra space from MAIL FROM and RCPT TO commands
This commit is contained in:
parent
ee14ff7e00
commit
6ea91ad3cb
@ -355,7 +355,7 @@ void SmtpClient::changeState(SmtpClient::ClientState state) {
|
|||||||
|
|
||||||
/* --- MAIL --- */
|
/* --- MAIL --- */
|
||||||
case _MAIL_0_FROM:
|
case _MAIL_0_FROM:
|
||||||
sendMessage("MAIL FROM: <" + email->getSender().getAddress() + ">");
|
sendMessage("MAIL FROM:<" + email->getSender().getAddress() + ">");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case _MAIL_1_RCPT_INIT:
|
case _MAIL_1_RCPT_INIT:
|
||||||
@ -383,7 +383,7 @@ void SmtpClient::changeState(SmtpClient::ClientState state) {
|
|||||||
|
|
||||||
case _MAIL_2_RCPT:
|
case _MAIL_2_RCPT:
|
||||||
if (addressIt != addressItEnd) {
|
if (addressIt != addressItEnd) {
|
||||||
sendMessage("RCPT TO: <" + addressIt->getAddress() + ">");
|
sendMessage("RCPT TO:<" + addressIt->getAddress() + ">");
|
||||||
addressIt++;
|
addressIt++;
|
||||||
} else {
|
} else {
|
||||||
changeState(_MAIL_1_RCPT_INIT);
|
changeState(_MAIL_1_RCPT_INIT);
|
||||||
|
Loading…
Reference in New Issue
Block a user