diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-06 20:22:47 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-06 20:22:47 +0100 |
commit | 57445759ee3c26dd03aa8292be3187685a424c1d (patch) | |
tree | 39cce9ee56e030bb9d6d7c23b43953330ad805e2 /examples/mailtransportresource/mailtransportresource.cpp | |
parent | 9237f0d23fb3700244933b36116397b80f466902 (diff) | |
download | sink-57445759ee3c26dd03aa8292be3187685a424c1d.tar.gz sink-57445759ee3c26dd03aa8292be3187685a424c1d.zip |
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
Diffstat (limited to 'examples/mailtransportresource/mailtransportresource.cpp')
-rw-r--r-- | examples/mailtransportresource/mailtransportresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
77 | } else { | 77 | } else { |
78 | MailTransport::Options options; | 78 | MailTransport::Options options; |
79 | if (settings.server.contains("smtps")) { | 79 | if (settings.server.contains("smtps")) { |
80 | options &= MailTransport::UseTls; | 80 | options |= MailTransport::UseTls; |
81 | } | 81 | } |
82 | if (!MailTransport::sendMessage(msg, settings.server.toUtf8(), settings.username.toUtf8(), settings.password.toUtf8(), settings.cacert.toUtf8(), options)) { | 82 | if (!MailTransport::sendMessage(msg, settings.server.toUtf8(), settings.username.toUtf8(), settings.password.toUtf8(), settings.cacert.toUtf8(), options)) { |
83 | SinkWarning() << "Failed to send message: " << mail; | 83 | SinkWarning() << "Failed to send message: " << mail; |