Skip to content

Commit

Permalink
Fix missing \r\n.\r\n when sending mails with server
Browse files Browse the repository at this point in the history
  • Loading branch information
M393 authored and dantti committed Oct 26, 2023
1 parent 7dd49fd commit de75055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void ServerPrivate::createSocket()

if (cont.awaitedCodes.isEmpty()) {
cont.state = ServerReplyContainer::SendingData;
if (cont.msg.write(socket)) {
if (cont.msg.write(socket) && socket->write(QByteArrayLiteral("\r\n.\r\n")) == 5) {
qCDebug(SIMPLEMAIL_SERVER) << "Mail sent";
} else {
qCCritical(SIMPLEMAIL_SERVER) << "Error writing mail";
Expand Down

0 comments on commit de75055

Please sign in to comment.