c# 收取邮件 解析,如何使用C#读取收到的邮件

在已有Exchange服务器的情况下,通过IMAP(首选)或POP访问是读取邮件的最佳方法。推荐使用AfterLogic的MailBee.NET IMAP组件,它提供了标准试用版和合理定价。此外,IMAP自动化可以适应大多数邮箱服务器平台,不仅限于Exchange。作者创建了一个简单的控制台应用,结合配置文件和命令行参数,通过Windows计划任务按需运行,实现了邮件读取功能。
摘要由CSDN通过智能技术生成

I am looking for a solution to allow me to read incoming emails. The three methods I can think of to do this at the moment are:

Create an Email Server parsing emails

Hook into an existing exchange server

Hook into outlook that is already set up with an email account

What is the best way to do this? And how does one go about implementing it?

Thanks

解决方案

If you are already dealing with an Exchange server as the mailbox host I would suggest leveraging that via IMAP (preferred) or POP access. Recently I developed a solution that accesses a specified mailbox via AfterLogic's MailBee.NET IMAP component which I think is worth the recommendation. They have a standard trial version and reasonable pricing. Also if you go this route either POP or IMAP automation is flexible enough to work with almost any mailbox server platform; It doesn't have to be limited to Exchange environments.

There are also free .NET IMAP components out there that may do the job as well. In my limited research I found that the free alternatives didn't quite meet all of my requirements or were not as easy to learn but your situation may differ. For completeness, here is a list of alternative / free IMAP libraries I considered before deciding to spend the money on MailBee:

To address the 2nd part of your question... The implementation in my recent project involved writing a very simple console application that references the MailBee.NET IMAP library. The console application has a standard config file and accepts command line arguments as parameters. We define Windows scheduled tasks to run the console application according to our process needs. I am sure you could do this any number of other ways but this was the simplest approach for our needs.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值