Sample code for 30+ languages & platforms
C#

Transition from MailMan.LoadEml to Email.LoadEml

Provides instructions for replacing deprecated MailMan.LoadEml method calls with Email.LoadEml.

Chilkat C# Downloads

C#
bool success = false;

Chilkat.MailMan mailman = new Chilkat.MailMan();

// ...
// ...

string filePath = "c:/dir/example.eml";

// ------------------------------------------------------------------------
// The MailMan.LoadEml method is deprecated:

Chilkat.Email emailObj = mailman.LoadEml(filePath);
if (mailman.LastMethodSuccess == false) {
    Debug.WriteLine(mailman.LastErrorText);
    return;
}

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using Email.LoadEml.

Chilkat.Email email = new Chilkat.Email();
success = email.LoadEml(filePath);
if (success == false) {
    Debug.WriteLine(email.LastErrorText);
    return;
}