Occur when there is an error in sending email.
[Syntax] C++: HRESULT OnError( long lError, BSTR ErrDescription ) Visual Basic: Object_OnError( ByVal lError As Long, ByVal ErrDescription As String ) Visual Basic.NET: Object_OnError( ByVal lError As Integer, ByVal ErrDescription As String ) C#: void OnError( int lError, string ErrDescription )
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
Asynchronous Property
SendMail Method
Terminate Method
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.