From 19e84d83da1dbe0e220a2d9585456a638991cf48 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 17 Dec 2023 22:31:09 +0100 Subject: [PATCH] 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. --- mailnotification/smtpclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnotification/smtpclient.cpp b/mailnotification/smtpclient.cpp index 0f71bc9d..dcb9beb9 100644 --- a/mailnotification/smtpclient.cpp +++ b/mailnotification/smtpclient.cpp @@ -351,7 +351,7 @@ void SmtpClient::processServerResponse(int responseCode, const QString &response break; case StateBody: if (responseCode == 354) { - send(m_messageData + "\r\n.\r\n"); + send(m_messageData); setState(StateQuit); } else { handleUnexpectedSmtpCode(responseCode, response);