开发者

CDO 1.2.1 (MAPI) html message

开发者 https://www.devze.com 2023-03-05 05:49 出处:网络
I\'m developing a C# application that interacts with exchange to send emails. To do that I use CDO 1.2.1 (MAPI) to log into exchange and create the message.

I'm developing a C# application that interacts with exchange to send emails. To do that I use CDO 1.2.1 (MAPI) to log into exchange and create the message. The problem is that I need to send a message with HTML body and it seems that is impossible to do 开发者_StackOverflow社区this without using the Outlook interop.

Any way to send an HTML message using CDO 1.2.1 (MAPI) without using the Outlook Interop?


Set the PR_)HTML (0x10130102) property using Message.Fields. Note that the property is binary (PT_BINARY), so you'd need to convert your HTML data to a hex string first.

0

精彩评论

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

关注公众号