MailDelete

The MailDelete function deletes a mail entry from the message store.

Syntax

BOOL MailDelete (HANDLE hMail, MailMsg* pmm);

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.
pmm
Pointer to the MailMsg structure containing the message to be deleted from the message store. The mail entry deleted is based on the value of the object identifier (oid) member of the structure when this function is called.

Return Values

This function returns TRUE if successful; FALSE if it fails. To get extended error information, use MailError or MailErrorMsg.

Remarks

If the entry cannot be found in the message store, the MailDelete function will fail.

For more information, see Inbox.

See Also

MailGet, MailOpen, MailPut, MailUpdate, MailMsg