GetEmail Method

Get email raw content from mailbox.

[Syntax]
C++: HRESULT GetEmail( BSTR MailBox, long Index, BSTR* pVal )
Visual Basic: GetEmail( MailBox As String, Index As long ) As String
C#: string GetEmail( 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 the raw content of email. If it fails, the return value is null string.

Remarks

You can use this method to get email's content and pass it to POPMSG's RawContent property.


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