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 開發(fā)前景 2
1.3 本章小結(jié) 2
第2章 電子郵件的協(xié)議和標(biāo)準(zhǔn) 3
2.1 SMTP協(xié)議簡介及工作原理 3
2.2 SMTP協(xié)議的命令和應(yīng)答 4
2.2.1 SMTP協(xié)議的命令 4
2.2.2 SMTP的應(yīng)答碼 6
2.3 信件的頭部 6
2.3.1 信頭的一般格式 6
2.3.2 結(jié)構(gòu)化字段和非機(jī)構(gòu)化字段 6
2.3.3 信頭字段的元素 7
2.4 本章小結(jié) 7
第3章 需求分析 8
3.1 郵件系統(tǒng)功能的需求 8
3.2郵件系統(tǒng)的界面需求 8
3.3郵件系統(tǒng)的環(huán)境需求 9
3.4本章小結(jié) 9
第4章 軟件架構(gòu)及系統(tǒng)框架圖 10
4.1 系統(tǒng)總體框架 10
4.2 郵件系統(tǒng)功能框圖 10
4.3郵件包 11
4.4郵件的存儲(chǔ)文件 11
4.5 本章小結(jié) 11
第5章 JIAJIA郵件系統(tǒng)程序組織 12
5.1 發(fā)送郵件包mailSEND 12
5.1.1 設(shè)置發(fā)送郵件的服務(wù)器端信息 12
5.1.2 如何創(chuàng)建一個(gè)郵件體 13
5.1.3發(fā)送郵件功能的實(shí)現(xiàn) 14
5.2 接受郵件包mailRECIVE 14
5.2.1 設(shè)置接受郵件的服務(wù)器端信息 15
5.2.2 顯示郵件的實(shí)現(xiàn) 15
5.2.3 郵件的刪除 15
5.3 已發(fā)信箱及草稿箱 16
5.3.1 文件的存儲(chǔ) 16
5.3.2 文件的讀取 16
5.3.3 文件的刪除 16
5.4 本章小結(jié) 17
第6章 軟件運(yùn)行界面及系統(tǒng)測(cè)試 18
6.1 新建郵件帳號(hào) 18
6.2 發(fā)送郵件界面 19
6.2.1郵件發(fā)送詳解 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已發(fā)信箱界面 25
6.4.1 已發(fā)信件的顯示 25
6.4.2已發(fā)信件的搜索 26
6.4.3已發(fā)信件的刪除 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服務(wù)器發(fā)送郵件的測(cè)試 30
6.7.1 同一服務(wù)器及發(fā)送一封純文本郵件的測(cè)試 30
6.7.2 同一服務(wù)器及發(fā)送一封帶附件的郵件的測(cè)試 31
6.8 利用不同的SMTP服務(wù)器發(fā)送郵件的測(cè)試 31
6.9 本章小結(jié) 31
第7章 結(jié)束語 32
致謝 33
參考文獻(xiàn) 34