基于Javamail的邮件收发系统论文
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
基于JavaMail的邮件收发系统
摘要
电子邮件在当今社会中扮演了一个很重要的角色。越来越多的人在使用它。而且用它的人数势必会继续增加。本文介绍了Javamail邮件收发系统的开发背景,对国内外现有的多种成熟的电子邮件系统进行分析和比较,总结出它们的优缺点,对Javamail技术进行深入研究,提出并设计实现了基于Javamail的邮件收发系统。本系统利用SMTP协议和POP协议从底层进行开发,利用JavaMail API为收发邮件提供与协议无关的访问。SMTP(简单邮件传输协议)是专门用来发送邮件的。POP (邮局协议)是专门用于接收邮件的。JavaMail API是一种可选的、能用于读取、编写和发送电子消息的标准扩展包。
本文主要可分为四个部分。第一部分介绍了Javamail邮件系统的意义和现状。第二部分具体介绍了几种相关协议和Javamail API。第三部分主要介绍了系统的开发工具JA V A语言、Eclipse及其安装过程与配置方法。第四部分详细阐述了Javamail邮件收发系统的实现过程。
关键词:SMTP,POP,JA V AMAIL,邮件收发
MAIL SYSTEM BASED ON JAVAMAIL
ABSTRACT
E-Mail play a very important role in modern times. More and more people are using it, and the number of it will larger and larger. This paper introduced the javamail system's development background, analyzed and compared some existing maturity Email system at home and abroad , summarized their advantages and disadvantages, studied deeply with the javamail technology , proposed and designed out the mail system based on javamail. This system used POP protocol and SMTP protocol to develop from the bottom, used JavaMail API to provide the visit which has nothing to do with the agreement for send and receive email. SMTP (Simple Mail Transfer Protocol) is designed to send a message. POP (Post Office Protocol) is designed to receive mail. JavaMail API is an standard expansion package which is optional, can be used to read, write and send electronic messages.
This paper can be divided into four parts. The first part introduced javamail email system's significance and status. The second part introduced several related agreements and JavaMail API. The third part mainly introduced system's development tools JA V A language , Eclipse and their installation process and configuration method. The fourth part detailed javamail email system's realization process.
Keywords:SMTP, POP, JA V AMAIL, Email to send and receive
目录
第一章绪论 (1)
1.1电子邮件介绍 (1)
1.2研究意义 (1)
1.3研究现状 (3)
第二章相关邮件协议和JavaMail API (5)
2.1相关邮件协议 (5)
2.2JavaMail API (6)
2.2.1 JavaMail API简介 (6)
2.2.2 JavaMail API核心类 (6)
2.3.3 JavaMail API的应用 (8)
第三章应用系统开发工具 (10)
3.1Java开发语言简介 (11)
3.2开发工具Eclipse (12)
3.3开发软件的安装 (12)
3.3.1 JA V A环境的安装与配置 (12)
3.3.2 Eclipse的安装 (14)
3.3.3 javamail的安装 (15)
第四章JavaMail系统的实现 (16)
4.1环境配置与界面搭建 (16)
4.2设置邮件服务器参数的实现 (16)
4.3创建与发送邮件功能的实现 (17)
4.3.1 装载邮件服务器属性, 并与其建立连接 (17)
4.3.2 构建邮件 (18)
4.3.3 创建Transport对象发送邮件 (19)
4.4接收邮件功能的实现 (19)
4.4.1 获取服务器信息 (20)
4.4.2 建立通信连接 (20)
4.4.3显示邮件 (20)
4.5删除邮件功能的实现 (22)
第五章结语 (23)
参考文献 (24)
致谢 (25)