.NET code来阅读电子邮件到SQL数据库 [英] .net code to read email into a sql database

查看:154
本文介绍了.NET code来阅读电子邮件到SQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一些链接和/或code片段,将允许任何一个asp.net网页,(或者一个Outlook插件),让我读发送到特定的电子邮件地址的电子邮件,然后解析除了电子邮件消息成组成部分(即主题,正文,附件等),并保存到我的数据库。

I am looking for some links and/or code snippets that will allow either an asp.net webpage, (or alternatively an outlook add-in) that will allow me to read emails sent to a particular email address, and then parse apart the email message into component parts (i.e. subject, body, attachments etc) and save to my database.

基本主题和内容是最重要的,但我也希望能够循环直通附件和任何在线图​​像,然后去兴建件,保存到一个SQL数据库中,这样的消息可以是重建。

The basic subject line and content are most important, but I'd also like to be able to iterate thru attachments and any in-line images and then de-construct the pieces and save into an sql database so the message can be reconstructed.

我所主要希望实现的是具有转发某些重要的邮件到非人类的电子邮件地址的方式,有我的应用程序挑开的片,然后保存到一个SQL Server数据库,然后再重新将它们发布一个网站 - 归档目的

What I am essentially looking to accomplish is have a way of forwarding certain "important" emails to non-human email address, have my app pick apart the pieces and then save to an SQL Server database, and then re-publish them to a website - for archiving purpose.

任何图书馆或链接,这将使这个无痛,尽可能不让我重新发明轮子就这一个?

Any libraries or links that will make this painless as possible and keep me from re-inventing the wheel on this one?

编辑:我使用的电子邮件是一个普通的POP3帐户,不交流,如果有差别

The email I am using is a regular pop3 account, not exchange, if this makes a difference.

推荐答案

奇尔卡特做一个POP3组件,可能对您有用: http://www.chilkatsoft.com/email-dotnet.asp

Chilkat do a POP3 component that you might find useful: http://www.chilkatsoft.com/email-dotnet.asp

和外接-Ex的preSS周围做展望一个很好的包装,如果你不觉得对Visual Studio工具的Microsoft Office勇敢 HTTP://www.add-in-ex$p$pss.com/

And Addin-Express do an excellent wrapper around Outlook if you don't feel brave enough for Visual Studio Tools for Microsoft Office http://www.add-in-express.com/

这篇关于.NET code来阅读电子邮件到SQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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