GetMailBody

Mail level API

The GetMailBody gets a text part of the specified mail message.

 

Delphi syntax:

function GetMailBody(Handle: TMailboxHandle; FolderNumber, MailNumber: dword; Body: Pointer): dword;

C++ syntax:

            DWORD WINAPI GetMailBody(DWORD Handle, DWORD FolderNumber, DWORD MailNumber, LPSTR Body);

C# syntax:

public static extern int GetMailBody(int boxHandle, int folderNumber, int mailNumber, [MarshalAs(UnmanagedType.LPStr)]StringBuilder body);

 

Parameters:

Handle

 Handle of previously opened mailbox.

FolderNumber

 Number of the folder with the mail.

MailNumber

 Specifies number of the mail message inside the folder.

Body 

 Retrieves a pointer to a memory block, which contains a text part of the message (null-terminated string);

 

Return Values:

Returns data buffer with text part of the mail message to Body pointer.

On success return OMS_OK or Error Code if fails.

 

Remarks:

Use GetMailBodyLength to obtain a Body buffer size.

 

See Also:

OpenMailbox, GetFolderCount, GetFolderProp

 

 

 

 

© AIRMail SDK Team 2005-2008, please contact as