如何检索和解析电子邮件 [英] How to retrieve and parse email
本文介绍了如何检索和解析电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试创建一个C#应用程序,该应用程序会在收到新电子邮件以及电子邮件是否来自特定人员时通知您,以打开并解析电子邮件并处理解析结果.
我不知道从哪里开始.有人可以指出正确的方向从哪里开始.
谢谢
Donald
Hi,
I''m trying to create a C# app that''s notified when I receive a new email and if the email is from a particular person to open and parse the email and process the parsed results.
I have NO idea where to start. Can someone please point me in the right direction where to start.
Thank you,
Donald
推荐答案
请参阅此代码项目文章.在ASP.NET中阅读Gmail收件箱邮件 [ ^ ]
Take a look at this Code Project article.Read Gmail Inbox Message in ASP.NET[^]
您可能需要做的就是从电子邮件客户端POP3或任何其他电子邮件客户端开始
您必须具有电子邮件客户端程序才能与电子邮件服务器进行交互.
1)我想说的是,首先要根据收到的电子邮件确定要使用的电子邮件客户端.
2)实现该客户端(有C#POP3客户端示例)
只需连接SMTP -TCP协议即可.
3)在这些消息上定义您的业务规则.
希望这会有所帮助.
All you might need to do is start from email client , POP3 or anyother email client,
You must have email client program to interact with email servers.
1) I would say first identify which email client want you want to use based on email you receive.
2) Get that client implemented (there are sample of C# POP3 client)
just need to hook up SMTP -TCP protocols.
3) Define your business rules on those messages.
Hope this helps.
这篇关于如何检索和解析电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文