vmime.NET - Smtp, Pop3, Imap Library (for C++ and .NET)
Summary 简述
With this project, C++ and .NET Windows programmers get a very versatile library to send and download emails via SMTP, POP3 and IMAP with TLS and SSL support.
这是一个支持SMTP, POP3 and IMAP协议的email发送和接收类库,并且实现了TLS,SSL安全协议
Features 特色
· This is a high quality library that can be used in production.
· 这是一个高质量的类库
· SMTP, POP3, IMAP protocols implemented.
· 支持SMTP, POP3 and IMAP协议
· TLS and SSL encrpyption (using openssl library) with 185 built-in X.509 root certificates.
· 实现了TLS,SSL安全协议
· SASL authentication (Simple Authentication and Security Layer).
· 通过了SASL 认证
· Email builder builds RFC-2822 and multipart messages.
· Email builder可以创建 RFC-2822 和多部分的消息
· HTML email generation with embedded objects.
· HTML email基于嵌入的对象。
· Full support for attachments with automatic mime-type detection of 1010 built-in mime types.
· 支持1010互联网媒体类型作为附件
· Email parser allows to extract attachments or text.
· You will learn in 15 minutes how to use the library. It follows the KISS principle ("Keep it simple, stupid").
· 只需要15分钟就可以学会此类库。它遵循简单,易用原则。
· This project is mainly written in pure C++ and has a manged C++ wrapper that exposes the functionality to .NET (C# and Visual Basic .NET).
· 本类库使用受托管的c++编写,因此可以使用c#,vb来使用来类库
· The project is written on Visual Studio 2005 and can be imported to any higher Visual Studio version.
· 此类库使用Visual Studio 2005 编写,因此可以被更高版本使用。
· Fully RFC-compliant implementation.
· 全面支持RFC协议
· 8-bit MIME and encoded word extensions.
· 支持8位MIME(多用途网际邮件扩充协议) 和编码字节扩展
· Pipelining and chunked message transfer (If the server supports it).
· 如果服务器支持,可以实现管道传输和分块传输
· Trace output showing the entire communication with the server.
· 追踪输出信息可以显示服务器所有的通信。
· Full Unicode support for CJK (Chinese, Japanese, Korean).
· 支持中,日,韩 Unicode 字符集
· 32 Bit and 64 Bit version.
· Very clean code written by very experienced programmers.
· 代码很整洁
· Demo application in C++.
· Demo application in C#.
· All required dependencies (e.g. openssl) are included in the download RAR file. You don't have to download other sources to compile the project.
· 所有的依赖项在包含在下载的压缩中,无需重新下载。
· The download contains the VS2005 compiled vmime.NET.dll (32+64 Bit), so if you are a pure C# programmer and don't have Visual Studio C++ installed you can compile the C# demo.
· 如果你没有安装c++,可以直接使用C# demo,其中的vmime.NET.dll 类库是已经编译好的
· The DLL is strong named (signed).
· 类库经过了强命名
· GNU GPL license. (Commercial licenses available)
· 遵循GLP授权协议
Why using vmime ?
I was searching for a SMTP/POP3/IMAP library. What I found were either very expensive commercial libraries or free libraries
我曾经寻找发送邮件的类库,它们不是商业化的,就是免费版本但无法提供支持的。
without encryption support. Today many SMTP servers demand a TLS or SSL connection. With an email library that does not support encryption you will not be able to send an email to a Gmail SMTP server.
现在许多SMTP服务器要求实现TLS,SSL协议。
Finally I found vmime, which is a multi platform library for SMTP, POP3, IMAP, SendMail and MailDir with very cleanly written code and hosted on Github, mainly written by Vincent Richard, who did a great work.
最后我发现了vmime,它实现了SMTP, POP3, IMAP,等协议,代码很干净,并且被放在Github上面,主要的作者是Vincent Richard,他太棒了。
相关示例及下载,请见原文
http://www.codeproject.com/Articles/719490/vmime-NET-Smtp-Pop3-Imap-Library-for-Cplusplus-and