From 6e3c3178fa8e0c421753c08506b4a91bbcecc26f Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 10 Mar 2005 21:14:19 +0000 Subject: smtp ompi fix --- (limited to 'kmicromail/libmailwrapper') diff --git a/kmicromail/libmailwrapper/smtpwrapper.cpp b/kmicromail/libmailwrapper/smtpwrapper.cpp index 5096f67..872a460 100644 --- a/kmicromail/libmailwrapper/smtpwrapper.cpp +++ b/kmicromail/libmailwrapper/smtpwrapper.cpp @@ -193,7 +193,7 @@ void SMTPwrapper::connect_server() bool ssl; uint16_t port; ssl = false; - bool try_tls = true; + bool try_tls = false; bool force_tls=false; QString failuretext = ""; @@ -201,11 +201,13 @@ void SMTPwrapper::connect_server() return; } server = m_SmtpAccount->getServer(); - if ( m_SmtpAccount->ConnectionType() == 2 ) { + if ( m_SmtpAccount->ConnectionType() == 3 ) { ssl = true; try_tls = false; - } else if (m_SmtpAccount->ConnectionType() == 1) { + } else if (m_SmtpAccount->ConnectionType() == 2) { force_tls = true; + } else if (m_SmtpAccount->ConnectionType() == 1) { + try_tls = true; } int result = 1; port = m_SmtpAccount->getPort().toUInt(); -- cgit v0.9.0.2