如何创建电子邮件客户端? [英] How Do I Create An Email Client?

查看:148
本文介绍了如何创建电子邮件客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个用于管理电子邮件的Windows应用程序。任何人都可以为它推荐任何好书吗?

我不需要整个源代码。我只想要我可以研究整个imap协议如何工作的资源。

提前感谢。

I want to create a windows application for managing my email. Can anyone recommend any good books for it??
I dont need the entire source code. i just want the resources from where i can study about how the whole imap protocol works.
thanks in advance.

推荐答案

我不知道看你为什么需要任何书籍。



无论如何,我不知道你的水平,也不能假设你的知识和对事物的理解水平有任何信息。如果你需要阅读一本关于.NET和C#的书怎么办?好吧,你还需要知道线程, System.IO ,网络和用户界面。



所以,我只建议使用什么。假设您要使用某些SMPT服务器和某些POP3服务器。对于使用SMTP服务器,一切都在.NET FCL中可用:

http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient%28v=vs.110%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage%28v=vs.110%29.aspx [ ^ ],

http: //msdn.microsoft.com/en-us/library/system.net.mail%28v=vs.110%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/gg145039%28v=vs.110%29.aspx [ ^ ]。



要使用POP3或IMAP,您需要实现协议,并且工作的最大部分是根据不同的MIME类型解析邮件包及其所有部分。我建议开源 http://sourceforge.net/projects/hpop [ ^ ]。



此产品编写得不是很好,但它确实严格遵循这一大量标准。即使您不打算专门实施POP3客户端,也可以使用它。 (而且这样的客户代码只是整个工作的一小部分。)



你也可以考虑使用IMAP或其他东西。然后执行Web搜索并尝试查找适当的信息和一些可以帮助您的可用开源组件。此刻,我不知道一个好的开源IMAP组件(专有组件随时可用,但我从未尝试过),但您可以查找它们: http://bit.ly/UHorn2 [ ^ ] 。



毕竟,你可以简单地学习协议(这不是太难)并自己实现。在所有情况下,仍然可以使用OpenPOP.NET中的代码,只是没有(或使用)POP3协议实现本身。



参见:

http://en.wikipedia.org/wiki/E-mail [ ^ ],

http://en.wikipedia.org/wiki/MIME [ ^ ],

http ://en.wikipedia.org/wiki/E-mail_client [ ^ ],

http://en.wikipedia.org/wiki/SMTP [ ^ ],

http://en.wikipedia.org/wiki/POP3 [ ^ ],

http://en.wikipedia.org/wiki/IMAP [ ^ ]。



如果您的级别足以理解上面引用的所有文档,有足够的编程技巧,你可以实现你的系统,而无需阅读任何书籍。如果没有,那么为它读一本书就没有多大帮助;相反,你需要学习编程。



-SA
I don't see why would you need any books.

Anyway, I don't know your level and cannot assume any information on your knowledge and level of understanding of things. What if you need to read a book on just .NET and C#? Well, you also need to know threading, System.IO, networking and UI pretty well.

So, I would only recommend what to use. Let's assume you want to use some SMPT server and some POP3 server. For using a SMTP server, everything is available in .NET FCL:
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.mail%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/gg145039%28v=vs.110%29.aspx[^].

To work with POP3 or IMAP, you would need to implement the protocol and, the biggest part of the work, parse the mail package and all its part according to different MIME types. I would recommend open-source http://sourceforge.net/projects/hpop[^].

This product is not written very well, but it does meticulously follow this huge set of standards. You can use it even if you are not going to implement a POP3 client specifically. (And the code of such client can be just tiny part of the whole work.)

You can also considering using IMAP or something else. Then perform the Web search and try to find appropriate information and some available open-source components which could help you. At this moment, I don't know a good open-source IMAP component (proprietary ones are readily available, but I never tried any), but you can look for them: http://bit.ly/UHorn2[^].

After all, you can simple learn the protocol (it is not too difficult) and implement it by yourself. In all cases, the code from OpenPOP.NET can still be used, just without (or with) POP3 protocol implementation itself.

See also:
http://en.wikipedia.org/wiki/E-mail[^],
http://en.wikipedia.org/wiki/MIME[^],
http://en.wikipedia.org/wiki/E-mail_client[^],
http://en.wikipedia.org/wiki/SMTP[^],
http://en.wikipedia.org/wiki/POP3[^],
http://en.wikipedia.org/wiki/IMAP[^].

If your level is good enough to understand all the documentation referenced above and have enough of programming skills, you can implement your system without reading any books. If not, reading a book "for it" would not help much; instead, you would need to learn programming.

—SA


在这里你可以找到简单的电子邮件客户端代码项目示例rmostaffa



使用C#构建自己的邮件客户端 [ ^ ]
Here you can find simple email client Example on Code Project by rmostaffa

Building your own Mail Client using C#[^]


这篇关于如何创建电子邮件客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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