diff --git a/Messaging/Mail/MailSession.vb b/Messaging/Mail/MailSession.vb index 902669ff..342cb93c 100644 --- a/Messaging/Mail/MailSession.vb +++ b/Messaging/Mail/MailSession.vb @@ -5,6 +5,7 @@ Imports Limilabs.Client Imports Limilabs.Client.IMAP Imports Limilabs.Client.SMTP Imports Microsoft.Identity.Client +Imports NLog Namespace Mail Public Class MailSession @@ -78,12 +79,14 @@ Namespace Mail .AuthType = pAuthType } - Logger.Debug("Connecting to Server..") + Logger.Debug("ConnectToServerWithBasicAuth..") Logger.Debug("Server: [{0}]", oSession.Server) Logger.Debug("Port: [{0}]", oSession.Port) Logger.Debug("User: [{0}]", oSession.User) Logger.Debug("AuthType: [{0}]", oSession.AuthType) - + Logger.Debug($"_Config.TlsVersion.EnableTls1_1 = [{pOptions.EnableTls1_1}]") + Logger.Debug($"_Config.TlsVersion.EnableTls1_2 = [{pOptions.EnableTls1_2}]") + Logger.Debug($"_Config.TlsVersion.EnableDefault = [{pOptions.EnableDefault}]") _Session = oSession Logger.Debug("Initializing Connection with Auth type [{0}].", oSession.AuthType) @@ -128,12 +131,12 @@ Namespace Mail ' Set TLS Version manually if requested If pOptions.EnableTls1_1 Then - Logger.Debug("Enabling TLS Version 1.1") + Logger.Debug("Enabling TLS Version 1.1...") Client.SSLConfiguration.EnabledSslProtocols = Client.SSLConfiguration.EnabledSslProtocols Or Security.Authentication.SslProtocols.Tls11 End If If pOptions.EnableTls1_2 Then - Logger.Debug("Enabling TLS Version 1.2") + Logger.Debug("Enabling TLS Version 1.2...") Client.SSLConfiguration.EnabledSslProtocols = Client.SSLConfiguration.EnabledSslProtocols Or Security.Authentication.SslProtocols.Tls12 End If diff --git a/Messaging/My Project/AssemblyInfo.vb b/Messaging/My Project/AssemblyInfo.vb index 8446c67f..97f93681 100644 --- a/Messaging/My Project/AssemblyInfo.vb +++ b/Messaging/My Project/AssemblyInfo.vb @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' übernehmen, indem Sie "*" eingeben: ' - - + +