I'm trying to get poSendMail_SendFailed but I don't understand the class structure. Below is the code that I put into poSendMail_SendFailed. I get this error:
vbsendmail 503.5.5.0 sender already specified
I'm thinking that I can't call vbSendEmail from inside the error handler. I could set a global flag but there must be a better way. Any ideas?
Private Sub poSendMail_SendFailed(Explanation As String)
' vbSendMail 'SendFailed Event
Dim strSubject As String
Dim strMessage As String
' MsgBox ("Your attempt to send mail failed for the following reason(s): " & vbCrLf & Explanation)
strSubject = "DTL Database E-Mail could not be sent"
strMessage = "Your attempt to send mail failed for the following reason(s): " & vbCrLf & Explanation
Call Send_EMail_to_Man("Maintenance_Email", strSubject, strMessage & vbNewLine & "(EM-41)")