diff options
author | serjepatoff <SerjEpatoff@gmail.com> | 2016-07-08 10:20:03 +0300 |
---|---|---|
committer | HoĆ V. DINH <dinh.viet.hoa@gmail.com> | 2016-07-08 00:20:03 -0700 |
commit | 8ae68c5ed4e92fae8c7faca19bc2f5e40b53af12 (patch) | |
tree | 22610d1e0dace6e0461058ee5eb7d38fd3d1bc91 /src/core/smtp/MCSMTPSession.cpp | |
parent | bb4ce179df4991c4630d2d1df72318c60105fe54 (diff) |
MCSMTPSession.cpp: outlook bcc fix (continued) (#1470)
Diffstat (limited to 'src/core/smtp/MCSMTPSession.cpp')
-rw-r--r-- | src/core/smtp/MCSMTPSession.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/smtp/MCSMTPSession.cpp b/src/core/smtp/MCSMTPSession.cpp index 2da04d97..4875d3b4 100644 --- a/src/core/smtp/MCSMTPSession.cpp +++ b/src/core/smtp/MCSMTPSession.cpp @@ -77,6 +77,13 @@ SMTPSession::~SMTPSession() void SMTPSession::setHostname(String * hostname) { MC_SAFE_REPLACE_COPY(String, mHostname, hostname); + + if (hostname != NULL && hostname->lowercaseString()->isEqual(MCSTR("smtp-mail.outlook.com"))) { + mOutlookServer = true; + } + else { + mOutlookServer = false; + } } String * SMTPSession::hostname() @@ -289,12 +296,6 @@ void SMTPSession::connect(ErrorCode * pError) setup(); - if (hostname() != NULL) { - if (hostname()->lowercaseString()->isEqual(MCSTR("smtp-mail.outlook.com"))) { - mOutlookServer = true; - } - } - switch (mConnectionType) { case ConnectionTypeStartTLS: MCLog("connect %s %u", MCUTF8(hostname()), (unsigned int) port()); |