我是否使用.NET在邮箱服务器上搜索电子邮件 [英] Do I search emails on mailbox server using .NET
本文介绍了我是否使用.NET在邮箱服务器上搜索电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用给定的条件在邮箱服务器上搜索电子邮件。我的标准将基于电子邮件ID,电子邮件主题和一些正文关键字。
我可以使用.net执行此操作。请分享您的想法。
问候,
YRishi
我尝试了什么:
在Google上查看但没有得到任何相关答案。
Hi,
I need to search email's on mailbox sever with the given criteria. My criteria will be based on email-id,email-subject and some body keywords.
Can I do this using .net. Please share your ideas.
Regards,
YRishi
What I have tried:
checked on google but didn't get any related answer.
推荐答案
是的,你可以!要从邮件服务器查询邮件信息,您必须使用POP3
或IMAP
协议(取决于服务器的内容)支持)。
协议在
RFC 1939(POP3
) [ ^ ]
和RFC 3501(IMAP
) [ ^ ]
你可以使用.NET库System.Net.Sockets
和<$ c $完全自己编写它c> System.Net.Security 或使用任何可立即使用的组件(还有可用的免费组件)。
Yes you can! To query mail informations from a mail server you have to make use ofPOP3
orIMAP
protocols (depending on what the server is supporting).
The protocols are described in
RFC 1939 (POP3
) [^]
and RFC 3501 (IMAP
) [^]
You can write it completely on your own using the .NET librariesSystem.Net.Sockets
andSystem.Net.Security
or use any of the ready to use components (there are also free components available).
这篇关于我是否使用.NET在邮箱服务器上搜索电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文