Enable Tls1.1 and Tls1.2
This commit is contained in:
parent
78581e382b
commit
3801714e0a
@ -268,8 +268,10 @@ Public Class clsWorker
|
|||||||
Dim oTenantId As String = pArchiveFolder
|
Dim oTenantId As String = pArchiveFolder
|
||||||
oSession = Fetcher.ConnectToO365(pUsername, oClientId, oTenantId, oClientSecret)
|
oSession = Fetcher.ConnectToO365(pUsername, oClientId, oTenantId, oClientSecret)
|
||||||
Else
|
Else
|
||||||
|
oSession = Fetcher.Connect(pServer, pPort, pUsername, pPassword, pAuthType, New MailSession.MailSessionOptions() With {
|
||||||
oSession = Fetcher.Connect(pServer, pPort, pUsername, pPassword, pAuthType)
|
.EnableTls1_1 = True,
|
||||||
|
.EnableTls1_2 = True
|
||||||
|
})
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -764,7 +764,10 @@ Public Class frmMain
|
|||||||
Dim oTenantId = oArchiveFolder
|
Dim oTenantId = oArchiveFolder
|
||||||
oSession = oFetcher.ConnectToO365(oUser, oClientId, oTenantId, oClientSecret)
|
oSession = oFetcher.ConnectToO365(oUser, oClientId, oTenantId, oClientSecret)
|
||||||
Else
|
Else
|
||||||
oSession = oFetcher.Connect(oServer, oPortIn, oUser, PWPlain, oAuthType)
|
oSession = oFetcher.Connect(oServer, oPortIn, oUser, PWPlain, oAuthType, New MailSession.MailSessionOptions() With {
|
||||||
|
.EnableTls1_1 = True,
|
||||||
|
.EnableTls1_2 = True
|
||||||
|
})
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If oSession.Connected = True Then
|
If oSession.Connected = True Then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user