CreateMail

 

 

CreateMail

Call CreateMail to create new mail in selected folder.

 

Delphi syntax:

          function CreateMail(Handle: TMailboxHandle; FolderID: dword; Mail: pointer; Size: dword): dword; stdcall;

C++ syntax:

          DWORD WINAPI CreateMail (DWORD Handle, DWORD FolderID, LPSTR Mail, DWORD Size);

C# syntax:

          public static extern int CreateMail (int boxHandle, int folderID, [MarshalAs(UnmanagedType.LPStr)]StringBuilder mail, int size);

 

Parameters:

Handle

Handle of previously opened mailbox.

FolderID

Number of the folder with the mail.

Mail

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

Size

Size of Mail.

 

Return Values:

Put the mail message source code as a null-terminated string, in the FolderID folder pointer.

On success return OMS_OK or Error Code if fails.