MHT sending mail with Indy

410 Views Asked by At

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

Thanks in advance!

1

There are 1 best solutions below

0
On BEST ANSWER

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.