diff --git a/Stundensheet.xlsx b/Stundensheet.xlsx index c68577c6..26b3e812 100644 Binary files a/Stundensheet.xlsx and b/Stundensheet.xlsx differ diff --git a/nsw/Source/bsmd.email/BSMDPopClient.cs b/nsw/Source/bsmd.email/BSMDPopClient.cs index 44e87a66..c1bcf634 100644 --- a/nsw/Source/bsmd.email/BSMDPopClient.cs +++ b/nsw/Source/bsmd.email/BSMDPopClient.cs @@ -36,8 +36,13 @@ namespace bsmd.email { this.pop3Client = new Pop3Client(); - this.pop3Client.Connect(Properties.Settings.Default.POP3Server, Properties.Settings.Default.POP3Port, true, + bool useSSL = false; // abhängig vom PORT setzen!!! + if (Properties.Settings.Default.POP3Port != 110) + useSSL = true; + + this.pop3Client.Connect(Properties.Settings.Default.POP3Server, Properties.Settings.Default.POP3Port, useSSL, 60000, 60000, new System.Net.Security.RemoteCertificateValidationCallback(ValidateServerCertificate)); + // this.pop3Client.Connect(Properties.Settings.Default.POP3Server, Properties.Settings.Default.POP3Port, useSSL); this.pop3Client.Authenticate(Properties.Settings.Default.POP3User, Properties.Settings.Default.POP3Password); this.IsConnected = true;