MailErrorMsg

The MailErrorMsg function retrieves the last occurrence of a mail error condition, fills a text string with a description of the error, and sets a pointer to the line number where the error occurred.

Syntax

int MailErrorMsg (HANDLE hMail , LPWSTR szBuffer, int iBuffLen , int* piSrcLine);

At a Glance

Header file: Msgstore.h
Platforms: H/PC
Versions: 1.0 and later

Parameters

hMail
Handle to the mail context. This handle is created by the MailOpen function.
szBuffer
Pointer to a wide character string array containing a description of the error condition issued by the last called mail function.
iBufferLen
Length, in characters, of the string array receiving the error description.
piSrcLine
Pointer to an integer containing the line number where the error occurred. If no errors are encountered, the value pointed to by this parameter is set to NULL.

Return Values

This function returns the value of the last error code as an integer.

Remarks

The MailErrorMsg function operates with the same behavior as the MailError function with the exception of the additional information it provides.

For more information, see Inbox.

See Also

MailError