Mail.Load Method


Loads a RFC822 message ( *.eml) file or binary email content to current Mail instance.

[VisualĀ Basic]
Public Sub Load( _
    fileName As String, _
    lateLoadBody As Boolean 
)

Public Sub Load( _
    content() As Byte _
)
[C#]
public void Load(
    string fileName,
    bool lateLoadBody
);

public void Load(
    byte[] content
);
[C++]
public: void Load(
    String* fileName,
    bool lateLoadBody
);

public: void Load(
    unsigned char content __gc[]
);
[JScript]
public function Load( 
    fileName : String,
    lateLoadBody : Boolean
);

public function Load( 
    content : Byte[]
);

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.
content
The binary data of the email.