最近要做個郵件收發功能,所以在網上搜索資料。
搜索很多都是有關JMAIL組件的文章,但這個jmail.dll組件是商業版的,免費版的不支持POP3。如果是使用發郵件功能,是可以的。
但如果單單隻要發郵件功能,使用C#自帶的類就可以了。
JMAIL還要安裝註冊之後纔可以使用,很不方便。
上網下載了個破解版的JMAIL 4.4。可以接收郵件了,但是又遇到了亂碼的問題。繼續百度查資料。
瞭解到要4.5才解決了這個問題,但是沒有找到4.5版本的版。
最後瞭解到還有一個開源的c#項目可以接收郵件。
jmail是一個第三方郵件操作組件,通常位於web服務器端,和站點程序緊密配合來接收及提交郵件到郵件服務器的控件,讓網站擁有發送郵件既接收郵件的功能。
JMAIL 官網下載地址: http://www.dimac.net/default2.asp?M=Products/MenuDOTNET.asp&P=Products/JMaildotnet/start.htm
JMAIL4.4破解版下載地址: http://download.csdn.net/detail/youaregoo/5905337
那個是Jmail的一個BUG,已經轉了的,沒有用啊。現在換用OpenPop了,問題都解決了,還是開源的哦~
OpenPop.NET是POP3客戶端的一個開源實現和採用C#開發的MIME解析器。
POP3 Client Features
- Easy to use POP3 client
- Support for plain TCP or TLS/SSL connections
- Authentication methods supported
- Plain
- APOP
- CRAM-MD5 (RFC 2195)
- CAPA capabilities command supported (RFC 2449)
MIME Parsing Features
- Preserves the MIME email hierarchy
- Easy access to different MediaType parts of the email
- Headers are parsed into strong types and are easy to examine
- Includes robust decoders for
- QuotedPrintable
- Base64
- EncodedWord
- Continuation and encoding of header fields (RFC 2231)
- Emails are fully persistable