MailDeleteAttachment

The MailDeleteAttachment function deletes a mail attachment.

Syntax

BOOL MailDeleteAttachment (HANDLE hMail, MailMsg * pmm, MailAtt * pma, BOOL fFullDelete);

At a Glance

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

Parameters

hMail
Handle to the current mail context. This handle is created by the MailOpen function.
pmm
Pointer to the mail message from which the attachment is to be deleted.
pma
Pointer to the mail attachment to be deleted.
fFullDelete
The entire attachment will be deleted if this flag is TRUE. Otherwise, the file is deleted, but the header remains.

Return Values

This function returns TRUE if the attachment is deleted; FALSE otherwise. To get extended error information, use MailError or MailErrorMsg.