Get latest error code while sending email.
[Syntax] Visual C++: HRESULT GetLastError(long* pVal) Visual Basic: GetLastError() As Long
Return Value
Value | Meaning |
0 | The operation completed successfully. |
1 | The task is terminated by user. |
2 | Error with Dns look up. |
3 | Error with connecting server. |
4 | Error with sending HELO/EHLO. |
5 | Error with sending sender. |
6 | Error with user authentication. |
7 | Error with sending recipients. |
8 | Error with sending data. |
9 | Error with SMTP reset. |
10 | Error with Exchange EWS protocol. |
11 | Error with Exchange Web DAV protocol. |
12 | Error with Gmail API protocol. |
13 | Error with MsGraph API protocol. |
Remarks
See Also