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

Transition from MailMan.GetFullEmail to MailMan.FetchFull

Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.

Chilkat Go Downloads

Go
    success := false

    mailman := chilkat.NewMailMan()

    //  ...
    //  ...

    //  Assume the email header was previously downloaded using some other Chilkat method...
    emailHeader := chilkat.NewEmail()

    //  ------------------------------------------------------------------------
    //  The GetFullEmail method is deprecated:

    fullEmailObj := mailman.GetFullEmail(emailHeader)
    if mailman.LastMethodSuccess() == false {
        fmt.Println(mailman.LastErrorText())
        mailman.DisposeMailMan()
        emailHeader.DisposeEmail()
        return
    }

    //  ...
    //  ...

    fullEmailObj.DisposeEmail()

    //  ------------------------------------------------------------------------
    //  Do the equivalent using FetchFull.
    //  Your application creates a new, empty Email object which is passed 
    //  in the last argument and filled upon success.

    fullEmail := chilkat.NewEmail()
    success = mailman.FetchFull(emailHeader,fullEmail)
    if success == false {
        fmt.Println(mailman.LastErrorText())
        mailman.DisposeMailMan()
        emailHeader.DisposeEmail()
        fullEmail.DisposeEmail()
        return
    }


    mailman.DisposeMailMan()
    emailHeader.DisposeEmail()
    fullEmail.DisposeEmail()