diff options
Diffstat (limited to 'src')
-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()); |