ABSTRACT
E-Mail plays a very important role in our daily life, and the number of user is increasing. Though there is a lot of software for sending and receiving letters such as OUTLOOK, it is difficult and complicated for the most non-professional people. So, I make use of SMTP and Pop3 protocol to develop this system (The full name of SMTP is Simple protocol of Mail Transfer. It is used to send letters. The full name of Pop3 is Post Office Protocol .It is used to receive letters. ). In the JAR package of JavaMail, it includes a series of function for sending and receiving E-Mail. Also, it can interact with the server. E-mail with attachments is available to be sent and received. What is more, the sent letters can be preserved. Also, there are contacts, draft box and so on. In the nature of things, we can use different SMTP service. Maybe my system is not perfect as OUTLOOK, but it is easy to master and use.
Key Words:Pop3,Smtp,JavaMail
目錄
摘要 I
ABSTRACT II
第1章 引言 1
1.1 電子郵件介紹 1
1.2 開發前景 2
1.3 本章小結 2
第2章 電子郵件的協議和標準 3
2.1 SMTP協議簡介及工作原理 3
2.2 SMTP協議的命令和應答 4
2.2.1 SMTP協議的命令 4
2.2.2 SMTP的應答碼 6
2.3 信件的頭部 6
2.3.1 信頭的一般格式 6
2.3.2 結構化字段和非機構化字段 6
2.3.3 信頭字段的元素 7
2.4 本章小結 7
第3章 需求分析 8
3.1 郵件系統功能的需求 8
3.2郵件系統的界面需求 8
3.3郵件系統的環境需求 9
3.4本章小結 9
第4章 軟件架構及系統框架圖 10
4.1 系統總體框架 10
4.2 郵件系統功能框圖 10
4.3郵件包 11
4.4郵件的存儲文件 11
4.5 本章小結 11
第5章 JIAJIA郵件系統程序組織 12
5.1 發送郵件包mailSEND 12
5.1.1 設置發送郵件的服務器端信息 12
5.1.2 如何創建一個郵件體 13
5.1.3發送郵件功能的實現 14
5.2 接受郵件包mailRECIVE 14
5.2.1 設置接受郵件的服務器端信息 15
5.2.2 顯示郵件的實現 15
5.2.3 郵件的刪除 15
5.3 已發信箱及草稿箱 16
5.3.1 文件的存儲 16
5.3.2 文件的讀取 16
5.3.3 文件的刪除 16
5.4 本章小結 17
第6章 軟件運行界面及系統測試 18
6.1 新建郵件帳號 18
6.2 發送郵件界面 19
6.2.1郵件發送詳解 19
6.3 接收與顯示郵件界面 21
6.3.1 接受不帶附件的郵件 21
6.3.2 顯示郵件 22
6.3.3附件的下載 23
6.3.4 收件夾的搜索功能 23
6.3.5收件夾的刪除功能 24
6.4已發信箱界面 25
6.4.1 已發信件的顯示 25
6.4.2已發信件的搜索 26
6.4.3已發信件的刪除 27
6.5草稿箱界面 28
6.5.1草稿箱的顯示 28
6.5.2草稿箱的刪除 28
6.6通訊錄界面 29
6.6.1通訊錄界面 29
6.6.2通訊錄刪除界面 30
6.7 同一SMTP服務器發送郵件的測試 30
6.7.1 同一服務器及發送一封純文本郵件的測試 30
6.7.2 同一服務器及發送一封帶附件的郵件的測試 31
6.8 利用不同的SMTP服務器發送郵件的測試 31
6.9 本章小結 31
第7章 結束語 32
致謝 33
參考文獻 34