Occur when there is an error in sending email.
[Syntax] Visual C++: HRESULT OnError( long lError, BSTR ErrDescription ) Visual Basic: Object_OnError( ByVal lError As Long, ByVal ErrDescription As String )
Parameter:
lError
Error code.
| Value | Meaning |
| 0 | Error with connecting server. |
| 1 | Error with sending HELO/EHLO. |
| 2 | Error with user authentication. |
| 3 | Error with sending sender. |
| 4 | Error with sending recipients. |
| 5 | Error with sending data. |
| 6 | Error with SMTP reset. |
ErrDescription
Error description.
Remarks
If application performs an asynchronous SendMail method, this event informs application that an error occurs in sending email.
In synchronous mode, please use GetLastError method and GetLastErrDescription to obtain the latest error information.
See Also