CreateMailFromFile

 

 

CreateMailFromFile

 

Call CreateMailFromFille load new mail from file to selected mailbox folder.

 

Delphi syntax:

         function CreateMailFromFile(Handle: TMailboxHandle; FolderID: dword; FileName: LPCTSTR): dword; stdcall;

C++ syntax:

          DWORD WINAPI CreateMailFromFile(DWORD Handle, DWORD FolderID, LPSTR FileName);

C# syntax:

          public static extern int CreateMailFromFile(int boxHandle, int folderID, [MarshalAs(UnmanagedType.LPStr)]StringBuilder fileName);

 

Parameters:

Handle

Handle of previously opened mailbox.

FolderID

Number of the folder with the mail.

FileName

Name of file with the mail massage.

 

Return Values:

Load the mail message form file to selected FolderID folder pointer.

On success return OMS_OK or Error Code if fails.