Skip to content

Commit

Permalink
Catch cert failures on sending mail
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdtrekkie committed Jun 21, 2024
1 parent 56565c2 commit 7ad48c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modMail.vb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Imports System.Net
Imports System.Net.Mail
Imports System.Net.Security
Imports System.Net.Sockets
Imports System.Security.Authentication
Imports System.Text

Module modMail
Expand Down Expand Up @@ -468,6 +469,8 @@ Module modMail
oClient.Send(oMsg)
Catch SmtpEx As SmtpException
My.Application.Log.WriteException(SmtpEx)
Catch AuthEx As AuthenticationException
My.Application.Log.WriteException(AuthEx)
End Try
End SyncLock
Else
Expand Down

0 comments on commit 7ad48c6

Please sign in to comment.