发送内嵌MHTML [英] sending inline MHTML

查看:117
本文介绍了发送内嵌MHTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能通过.NET 2.0的对象MAILMESSAGE 来发送动态创建一个内联MHTML文件

I was wondering if it is possible through the .NET 2.0 MailMessage object to send an inline MHTML file that is created on the fly.

通过内嵌我的意思是:应该以一种方式,发送。用户可以看到它,一旦他打开电子邮件,而无需打开/下载附件

By inline I mean: It should be sent in a way that the user can see it, once he opens the email, without having to open/download the attachment.

推荐答案

(jdecuyper - 感谢为插件,因为我写aspNetEmail)。

(jdecuyper -- thanks for the plug, as I wrote aspNetEmail).

您可以用aspNetEmail做到这一点。你可以用你的MHT取代电子邮件的全部内容。

You can do this with aspNetEmail. You can replace the entire contents of the email message with your MHT.

您不能System.Net.Mail做到这一点,但如果你想要去的商用路线,弹出我的电子邮件在dave@advancedintellect.com,我会告诉你如何可以做到这一点。

You can't do this with System.Net.Mail, but if you want to go the commerical route, pop me an email at dave@advancedintellect.com and I'll show you how this can be done.

如果你想要去的开源路线,有大概是在CodeProject上,你可以修改做一些这方面的SMTP代码。基本上,你会注入你的内容到SMTP过程DATA命令

If you want to go an open source route, there is probably some SMTP code on codeproject that you could modify to do this. Basically, you would inject your contents into the DATA command of the SMTP process.

有一点需要注意:如果您的MHT文件已嵌入的脚本,闪光灯,ActiveX对象或任何可通过邮件客户端被阻止,它可能不会呈现一样的,你看到在浏览器中的内容。

One thing to note: If your MHT document has embedded scripts, flash, activeX objects or anything that may be blocked by the mail client, it probably won't render the same as what you are seeing in the browser.

这篇关于发送内嵌MHTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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