This commit is contained in:
2022-10-18 09:59:43 +02:00
parent 25a4156429
commit c8b20d3a8c
3 changed files with 15 additions and 10 deletions

View File

@@ -69,9 +69,10 @@ Public Class Email2
pSMTP.StartTLS()
End If
Logger.Debug("Connection to SMTP Server [{0}] established!", pServer)
Logger.Debug("Logging in with user [{0}]", pUsername)
pSMTP.UseBestLogin(pUsername, pPassword)
If pUsername <> String.Empty Then
Logger.Debug("Logging in with user [{0}]", pUsername)
pSMTP.UseBestLogin(pUsername, pPassword)
End If
Return pSMTP