Mail.LoadFile Method


Loads a RFC822 message ( *.eml) file to current Mail instance.

[VisualĀ Basic]
Public Sub LoadFile( _
    FileName As String, _
    LateLoadBody As Boolean 
)
[Visual C++]
public: HRESULT LoadFile(
    BSTR FileName,
    VARIANT_BOOL LateLoadBody
);

Parameters

FileName
A full file name (*.eml) of RFC822 message.
LateLoadBody
If this parameter is false, all content of the file will be loaded; If this parameter is true, this method only loads headers of the email to save memory, and will load all content automatically on demand.