DeleteEmail Method

Delete email from specified mailbox.

[Syntax] 
C++: HRESULT DeleteEmail( BSTR MailBox, long Index, long* pVal )
Visual Basic: DeleteEmail( MailBox As String, Index As long ) As long
C#: long DeleteEmail( string MailBox, long Index )

Parameters

MailBox

Mailbox name.

Index

Ordinal number of email in this mailbox The minimum value is 0, the maximum value is returned by method GetEmailCount method.

Return Value

If this method succeeds, the return value is zero. If it fails, the return value is non-zero.

See also

GetEmailCount method
DeleteEmailById method


2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.