问题
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