如何在网站上显示电子邮件的附件文件 [英] How to show Attachment files of Email in website

查看:94
本文介绍了如何在网站上显示电子邮件的附件文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i希望根据他们在我网站上的邮件内容的mime类型显示附件。



怎么实现这个?我正在使用Imap4Client dll来检索邮件内容。

解决方案

我通常建议看一下开源产品OpenPop.NET:http://sourceforge.net/projects/hpop [ ^ ]。



不要认为它仅用于POP3。首先,它严格按照所有这些标准(包括MIME标准)解析标准邮件消息。该程序写得不是最好的方式,但它对我帮助很大;你可以看看你需要的部分,看看它是如何工作的,或者根据你的需要使用整个部分。源代码在C#中,因此在ASP.NET中使用它时不会有任何问题。



-SA

hi,

i want to show attachments according to the their mime types with mail content in my site.

how to achieve this? i am using Imap4Client dll to retrieve mail content.

解决方案

I usually advise to look at the open-source product OpenPop.NET: http://sourceforge.net/projects/hpop[^].

Don't think that it is devoted only to POP3. First of all, it parses standard mail messages meticulously following all those standards, including the MIME standards. The program is written not in the best way, but it helped me a lot; you can just look at the part you need and see how it works, or use the whole thing as is, depending on what you want. The source code is in C#, so you shouldn't have any problems using it in ASP.NET.

—SA


这篇关于如何在网站上显示电子邮件的附件文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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