Creating .msg file without COM Interop

可紊 提交于 2019-12-25 04:32:05

问题


I have some issues with the COM Interop, the company i'm working for refuse to add the COM dll on the server, so I can't send mail directly via Interop.

I would like to know if there is an existing library that exist to create .MSG files, so I can save them in a folder? I tried to find one first, but it seems that we have to pay for them and of course the company refuse to pay :)

Thanks in advance,


回答1:


MSG file format is documented, so in theory you can access or create MSG files using Windows OLE storage API (StgCreateStorageEx etc.) or even direct file access API.

Does the company you work for refuse to pay your salary? I bet just the time you spent researching this issue would be more than enough to purchase a library that can handle MSG files (Redemption, Aspose, etc.)



来源:https://stackoverflow.com/questions/41758641/creating-msg-file-without-com-interop

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