Chilkat MHT: GetEmail, GetMime, HtmlToEmail Methods Removed

Chilkat MHT methods that returned either an email object or a MIME object were removed in the v9.5.0 release. The reason for this was to decouple the internal dependencies between these objects. In some environments, such as for iOS, the size of the resultant executable can be important, and the internal linking between these objects increases the size. The decision for removing these methods was chosen because:

  1. To eliminate internal dependencies and thus potentially reduce executable size.
  2. Because the same functionality is achieved with one extra line of application code (see below).  This is no less efficient than if Chilkat returned the objects directly.
            Chilkat.Mht mht = new Chilkat.Mht();
            Chilkat.Email email = new Chilkat.Email();
            Chilkat.Mime mimeObj = new Chilkat.Mime();

            // ...

            string mime = mht.GetMHT("http://www.chilkatsoft.com/");
            if (mime == null)
            {
                // error..
            }

            // To load MIME into an email object:
            email.SetFromMimeText(mime);

            // To load MIME into a MIME object:
            mimeObj.LoadMime(mime);