EmailService: Update to .NET 4.8, make tls version configurable
This commit is contained in:
@@ -348,7 +348,11 @@ Public Class EmailService
|
||||
|
||||
' ======= Connect to server =======
|
||||
|
||||
Dim oResult = _MailSender.ConnectToServer(oAccount.Server, oAccount.Port, oAccount.Username, oAccount.Password, oAccount.AuthType)
|
||||
Dim oOptions As New MailSender.MailSenderOptions() With {
|
||||
.TlsVersion = _Config.TlsVersion
|
||||
}
|
||||
|
||||
Dim oResult = _MailSender.ConnectToServer(oAccount.Server, oAccount.Port, oAccount.Username, oAccount.Password, oAccount.AuthType, oOptions)
|
||||
|
||||
If oResult = False Then
|
||||
_Logger.Warn("Could not connect to server. Skipping.")
|
||||
|
||||
Reference in New Issue
Block a user