开发者

How can I set MHT-body for mail sending through Exchange Server?

I have a message as an MHT-File. Now I am searching for a way to set this for a mail to send through Exchange Server (with Exchange Web Service). When I set it as a MIME-Content, the parts (picture and text) will be attached as attachments (JPEG file and HTML file). But I need a way to set the开发者_StackOverflow whole MHT as a body with all containing objects.

The following is attaching the MHT as attachments. What is wrong?

EmailMessage message = new EmailMessage(service);
message.MimeContent = new MimeContent { Content = File.ReadAllBytes(bodyPath) };


I have it solved now with the Component for Exchange WebService programming from Indepenendent-Soft.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜