How to create “.msg” file without using outlook in mfc?

陌路散爱 提交于 2019-12-24 00:27:52

问题


I am using outlook 2010. i drag and drop single contact to desktop. contact created on desktop with ".msg" extensions. this file create in local folder using VC++/MFC


回答1:


A few options:

  1. MSG file format is documented, so you can use straight OLE storage API. http://msdn.microsoft.com/en-us/library/cc463912(v=exchg.80).aspx

  2. Use Extended MAPI (OpenIMsgOnIStg).

  3. Use Redemption and its RDOSession.CreateMessageFromMsgFile method. All you have to do is call CreateMessageFromMsgFile, populate the properties of the returned RDOMail object, call RDOMail.Save.



来源:https://stackoverflow.com/questions/22299460/how-to-create-msg-file-without-using-outlook-in-mfc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!