PopClient, Stunden
This commit is contained in:
parent
878bef3dc3
commit
a4d104d23d
Binary file not shown.
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user