generate .mht file programmatically

前端 未结 4 1132
醉话见心
醉话见心 2020-12-31 11:03

Does anybody know how to generate .mht file programmatically in C#, with embedded images in it? The thing is i have realised that .mht files are capable of embedding images

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 11:11

    MSDN has a great article (June 2011) about how to create an MHT file using both CDO and System.Net.Mail. C# source code is included in-full. I would use this above the VB.Net or Google Code version.

提交回复
热议问题