MailNotification: Fix double mail ending
While apparently the plugin was working with most mail servers, the double \r\n.\r\n at the end violates the spec and newer OpenSMTP servers are rejecting this.master
parent
8509e44104
commit
19e84d83da
|
|
@ -351,7 +351,7 @@ void SmtpClient::processServerResponse(int responseCode, const QString &response
|
||||||
break;
|
break;
|
||||||
case StateBody:
|
case StateBody:
|
||||||
if (responseCode == 354) {
|
if (responseCode == 354) {
|
||||||
send(m_messageData + "\r\n.\r\n");
|
send(m_messageData);
|
||||||
setState(StateQuit);
|
setState(StateQuit);
|
||||||
} else {
|
} else {
|
||||||
handleUnexpectedSmtpCode(responseCode, response);
|
handleUnexpectedSmtpCode(responseCode, response);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue