DeleteMail

 

 

DeleteMail

Call DeleteMail to delete selected mail message form selected folder.

 

Delphi syntax:

         function DeleteMail(Handle: TMailboxHandle; FolderID: dword; MailNumber: dword): dword;

C++ syntax:

          DWORD WINAPI DeleteMail(DWORD Handle, DWORD FolderId, DWORD MailNumber);

C # syntax:

          static extern int DeleteMail(int mailboxHandle, int folderId, int mailNumber);

 

Parameters:

Handle

 Identifies the mailbox file.

 

FolderId

 Id of folder.

 

MailNumber

 Number of the mail to delete.

 

 

Return Values:

Returns OMS_OK if mail deleted, else return Error Code