網絡技術漸漸成熟,電子郵件技術也越來越成熟。現今,電子郵件(E-mail)是Internet上使用最為廣泛的一種服務。
本論文設計并實現了一個電子郵件收發系統,該系統可以使用戶更加方便的管理電子郵件,用戶不用登陸網頁,就可以收取和發送電子郵件。該系統主要分為三部分:用戶設置、發送郵件和收取郵件。它采用C/S設計模式,服務器端是SMTP服務器和POP服務器,客戶端是郵件收發程序。用戶設置部分是注冊用戶,把用戶信息存儲起來。發送郵件部分是基于SMTP(Simple Mail Transfer Protocol,簡單郵件傳輸協議)與SMTP服務器進行對話。收取郵件部分是基于POP3(Post Office Protocol version 3,郵局協議)與POP服務器進行對話。電子郵件收發信息不只支持英文,而且支持中文。由于RFC882限制電子郵件的文本只能采用US ASCⅡ字符集,所以本系統采用MIME編碼解碼,擴展信件規范。最后,對該系統進行了測試。
論文分別從系統涉及的基礎知識、系統的設計與實現和系統實現采用的關鍵技術進行詳細說明。論文最后還對全文作出了總結。
關鍵詞:信體結構,SMTP,POP3,MIME, 編碼,解碼
A Design and Implement of Simple Mail System
Abstract
Network technology is becoming more and more nature, and E-mail technology is developed fast. Nowadays, E-mail has become a most used service on Internet.
The dissertation designs and implements a Simple Mail System. The users can easily manage the E-mail by using this system. They can check and send E-mail without landing website. The system includes three main modules: User setting, E-mail sending, E-mail checking. It uses a C/S architecture. The server is a SMTP server or a POP server, and the client is a sending and checking E-mail tool. The part of User setting is used to register users, it storage the information in the local disk. The part of E-mail sending is communicating with the SMTP server by Simple Mail Transfer Protocol and the part of E-mail checking is communicating with the POP server by Post Office Protocol. The Simple Mail System support not only English, but also Chinese. Limited by RFC822, the text of E-mail can only use ASCⅡ character set. Thus, this system makes use of MIME to encoding and decoding, and expanding mail norms. In the end, I make a testing for the Simple Mail System.
The dissertation introduces the system from the following aspects: the purpose of the design, the design and the implement of the system, the key technologies, and so on. Finally, it makes a summary of the dissertation.