C#
C#
Transition from MailMan.GetFullEmail to MailMan.FetchFull
Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.Chilkat C# Downloads
bool success = false;
Chilkat.MailMan mailman = new Chilkat.MailMan();
// ...
// ...
// Assume the email header was previously downloaded using some other Chilkat method...
Chilkat.Email emailHeader = new Chilkat.Email();
// ------------------------------------------------------------------------
// The GetFullEmail method is deprecated:
Chilkat.Email fullEmailObj = mailman.GetFullEmail(emailHeader);
if (mailman.LastMethodSuccess == false) {
Debug.WriteLine(mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchFull.
// Your application creates a new, empty Email object which is passed
// in the last argument and filled upon success.
Chilkat.Email fullEmail = new Chilkat.Email();
success = mailman.FetchFull(emailHeader,fullEmail);
if (success == false) {
Debug.WriteLine(mailman.LastErrorText);
return;
}