GetLastErrDescription Method

Get latest error descriptions.

Visual C++: HRESULT GetLastErrDescription(BSTR* pVal)
Visual Basic: GetLastErrDescription() As String

Return Value

If SendMail method handles an error in synchronous mode, the return value is the error description; otherwise, the return value is null.
Possible Value Corresponding Error Code
Error with connecting server. 0
Error with sending HELO/EHLO. 1
Error with user authentication. 2
Error with sending sender. 3
Error with sending recipients. 4
Error with sending data. 5
Error with SMTP reset. 6
Error with Dns lookup. 7


This method is designed for synchronous operating mode.

See Also

GetLastError Method