Sample code for 30+ languages & platforms
Go Requires Chilkat v11.0.0+

Transition from MailMan.LoadEml to Email.LoadEml

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

Chilkat Go Downloads

Go
    success := false

    mailman := chilkat.NewMailMan()

    //  ...
    //  ...

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

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

    emailObj := mailman.LoadEml(filePath)
    if mailman.LastMethodSuccess() == false {
        fmt.Println(mailman.LastErrorText())
        mailman.DisposeMailMan()
        return
    }

    //  ...
    //  ...

    emailObj.DisposeEmail()

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

    email := chilkat.NewEmail()
    success = email.LoadEml(filePath)
    if success == false {
        fmt.Println(email.LastErrorText())
        mailman.DisposeMailMan()
        email.DisposeEmail()
        return
    }


    mailman.DisposeMailMan()
    email.DisposeEmail()