GetMail

Mail level API

The GetMail gets a source code of the specified mail message.

 

Delphi syntax:

function GetMail(Handle: TMailboxHandle; FolderNumber, MailNumber: dword; Mail: pointer): dword;

C++ syntax:

            DWORD WINAPI GetMail (DWORD Handle, DWORD FolderNumber, DWORD MailNumber, LPSTR Mail);

C# syntax:

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

 

Parameters:

Handle

 Handle of previously opened mailbox.

FolderNumber

 Number of the folder with the mail.

MailNumber

 Specifies an ordinal number of a mail message inside the folder.

Mail

 Parameter retrieves a pointer to a memory block, which contains the mail message (null-terminated);

 

Return Values:

Return the mail message source code as a null-terminated string, in the Mail pointer.

On success return OMS_OK or Error Code if fails.

 

Remarks:

Use GetMailLength to obtain a Mail buffer size.

 

See Also:

OpenMailbox, GetFolderCount, GetFolderProp

 

 

 

 

© AIRMail SDK Team 2005-2008, please contact as