PopClient, Stunden

This commit is contained in:
Daniel Schick 2021-04-02 14:38:11 +00:00
parent 878bef3dc3
commit a4d104d23d
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -36,8 +36,13 @@ namespace bsmd.email
{ {
this.pop3Client = new Pop3Client(); 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)); 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.pop3Client.Authenticate(Properties.Settings.Default.POP3User, Properties.Settings.Default.POP3Password);
this.IsConnected = true; this.IsConnected = true;