Search code examples
delphiindymhtml

MHT sending mail with Indy


My question is how to send a mht message throw Indy 9 with Delphi 7 IDE?

Thanks in advance!


Solution

  • MHT is a format for saving an HTML document and associated resources into a single file. To send such a document as an email, you would have to extract the HTML and resource data first and put them into a TIdMessage component like other HTML-formatted email. There are articles on Indy's website for how to send HTML emails with Indy.

    Have a look at RFC 2557 for how MHTML interacts with email.