在没有COM Interop的情况下创建.msg文件 [英] Creating .msg file without COM Interop

查看:103
本文介绍了在没有COM Interop的情况下创建.msg文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与COM Interop遇到一些问题,我正在工作的公司拒绝在服务器上添加COM dll,因此我无法直接通过Interop发送邮件.

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.

我想知道是否存在用于创建.MSG文件的现有库,因此我可以将它们保存在文件夹中?我试图先找到一个,但似乎我们必须为它们付款,而公司当然拒绝付款:)

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 :)

预先感谢

推荐答案

MSG文件格式为 StgCreateStorageEx 等),甚至直接文件访问API.

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.

您工作的公司是否拒绝支付薪水?我敢打赌,您花在研究此问题上的时间足以购买可以处理MSG文件的库(

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.)

这篇关于在没有COM Interop的情况下创建.msg文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆