Go
Go
Transition from Email.GetDigest to Email.GetDigestEmail
Provides instructions for replacing deprecated GetDigest method calls with GetDigestEmail.Chilkat Go Downloads
success := false
email := chilkat.NewEmail()
// ...
// ...
index := 0
// ------------------------------------------------------------------------
// The GetDigest method is deprecated:
emailObj := email.GetDigest(index)
if email.LastMethodSuccess() == false {
fmt.Println(email.LastErrorText())
email.DisposeEmail()
return
}
// ...
// ...
emailObj.DisposeEmail()
// ------------------------------------------------------------------------
// Do the equivalent using GetDigestEmail.
// Your application creates a new, empty Email object which is passed
// in the last argument and filled upon success.
emailOut := chilkat.NewEmail()
success = email.GetDigestEmail(index,emailOut)
if success == false {
fmt.Println(email.LastErrorText())
email.DisposeEmail()
emailOut.DisposeEmail()
return
}
email.DisposeEmail()
emailOut.DisposeEmail()