<< Click to Display Table of Contents >> Navigation: Reference > SmtpMail > GetLastErrorDescription Method |
GetLastErrorDescription method returns error description of the last synchronous send operation.
Syntax
[Visual Basic]
Function GetLastErrorDescription() As String
Example:
Dim strError As String
strError = objSmtpMail.GetLastErrorDescription
[VBScript]
Function GetLastErrorDescription()
Example:
Dim strError
strError = objSmtpMail.GetLastErrorDescription
[C#]
string GetLastErrorDescription();
Example:
string strError = objSmtpMail.GetLastErrorDescription();
[C++]
HRESULT GetLastErrorDescription(BSTR* pstrError);
Example:
_bstr_t strError = spSmtpMail->GetLastErrorDescription();
Parameters
None.
Return value
Returns extended error information if the last message failed to be sent, empty string otherwise.
Remarks
If programming language you are using does not support out parameters (JavaScript for example), GetLastErrorDescription can be used to obtain extended error information of the last synchronous send operation, i.e. the error description from the last call of Send, SimpleSend, SimpleSendAttachment, SimpleSendScriptable or SimpleSendAttachmentScriptable.