What is the best way to track error? I used code below, but user always receive "Fail to submit".
How to find out real error?
Try
If EmailOut(strEmail, strPassword) Then // this is a boolean function. If email server has a problem will return false.
ShowNotification(rnError, "Your password will send to your email address " & strEmail & " soon")
Else
ShowNotification(rnError, "Fail to submit")
Exit Sub
End If
Catch ex As Exception
ShowNotification(rnError, ex.Message)
End Try