From 57445759ee3c26dd03aa8292be3187685a424c1d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 6 Mar 2017 20:22:47 +0100 Subject: Get mailtransport with kolabnow to work when connecting to smtps:// the command will silently fail, with wireshark spewing out a cryptic "5.5.2 command not recognized". The magic commandline (that works) is: curl smtp://smtp.kolabnow.com:587 -v --mail-from "$USER" --mail-rcpt "$USER" --ssl -u $USER.ch:$PW -T alternative.mbox -k --anyauth --- examples/mailtransportresource/mailtransportresource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/mailtransportresource/mailtransportresource.cpp') diff --git a/examples/mailtransportresource/mailtransportresource.cpp b/examples/mailtransportresource/mailtransportresource.cpp index 88a90c6..fa7eba4 100644 --- a/examples/mailtransportresource/mailtransportresource.cpp +++ b/examples/mailtransportresource/mailtransportresource.cpp @@ -77,7 +77,7 @@ public: } else { MailTransport::Options options; if (settings.server.contains("smtps")) { - options &= MailTransport::UseTls; + options |= MailTransport::UseTls; } if (!MailTransport::sendMessage(msg, settings.server.toUtf8(), settings.username.toUtf8(), settings.password.toUtf8(), settings.cacert.toUtf8(), options)) { SinkWarning() << "Failed to send message: " << mail; -- cgit v1.2.3