JSP企业快信(短信猫+java邮件)的设计与实现
摘 要
计算机网络的出现到现在已经经历了翻天覆地的重大改变。因特网也从最早的供科学家交流心得的简单的文本浏览器发展成为了商务和信息的中心。到了今天,互联网已经成为了大量应用的首选平台,人们已经渐渐习惯了网络交易,渐渐对网络产生了依赖。公司会议、机票预定、酒店预定、公司之间货物订单的下达等等工作都可以通过网络快速的完成。网络已经渗透到了人们生活中的方方面面,甚至已经延伸至人们日常的衣食住行各个领域。本项目就是在此背景下设计的企业快信系统。
本系统在开发中,采用了 MYSQL 数据库,同时使用到了 Java Swing、短信猫组件、Java MailAPI 等相关技术。在进行详细设计之前,根据总体设计的结构,确定每部分功能的解决方案,并完成相关技术的可行性分析以及技术原型的实现。在该系统中,采用数据服务器,和客户机相结合形成 B/S 结构,由相关人员或系统管理员执行如系统的备份、恢复、修改等重要操作,从而用来提高系统的安全性,并且降低了了黑客通过 Web 入侵来获取以及改变系统中重要数据信息的可能性。同时,采用 Web 客户机架构 B/S 三层结构,Web 客户机可通过 Internet 或专线连接应用服务器,向其发送指令,从而获取服务。这样做的优点是用浏览器便可进行,使用起来方便快捷,为客户提供了很大的便利。而对于记录管理,系统维护功能而言,主要是对记录信息进行处理,即对数据库信息进行添加,查询,导入和导出操作,这部分功能涉及的主要技术为通过 java连接 MYSQL 数据库,并通过 Java 代码完成对表内信息的查询和添加操作。
本文首先对企业快信的开发进行了较深入的研究,然后对短信发送与邮件发送原理进行了介绍,接下来对系统的概要设计、功能模块、数据库设计,以及名片夹管理功能与邮件发送功能的具体实现作了细致阐述,最后是系统效果的展示。企业快信系统是一个集短信与邮件为一体的移动商务应用系统。是针对企业内部II及外部不同需求和应用方面,而专门定制开发的系统软件。它完全集成了企业的业务推广、客情沟通、内部管理等应用功能。企业快信的作用是帮助企业解决企业内部、企业与外部沟通难、信息不能及时传播等问题。为此,系统提供邮件群发、短信群发、人员档案、信息的管理等功能。系统是短信猫与邮件在企业商务应用中的典型实例,因此必然受到众多企业的青睐,成为企业通信的最佳选择。
关键词:短信发送;邮件发送;企业快信
The Design and Implementation of Enterprise’s Express Letter System
Abstract
Computer network has undergone a great change.The internet has also developed intoa business and information center from the earliest.The company eeting,airlinereservation,hotel reservation, release the order of goods between the companies and so on,these all can becompleted through the network quikly.Internet has penetrated into every aspect of people’s life, even extending to the basic necessities of life in all areas of people’s daily life, The enterprise’s express letter system is designed in this context.
The system development uses MYSQL database, uses Java Swing, GSM Modem, Java mail API and other Technology. Before the detailed design of the structure of the overall design to determine the solution of some of the features, and complete the feasibility analysis and prototype implementation of the related technologies. In this system, data server and client combine to form the C/S structure, performed by the financial staff or system managers, such as system backup, restore, and modify the amount of important operating to improve the security of the system, reduce hacker by Web Intrusion to access and change the possibility of important information. The same time, the use of the Web client organizations into the B / S three-tier Web client can be connected through the Internet or green application server, send commands, and thus access to services. The advantage is you can operate from a browser, easy to use, fast and efficient, convenient to the customer with the greatest convenience. For records management, system maintenance functions, record information that the database information to add, query, import and export operations, some of the features involved in technology to through VC6 connect the MYSQL database, and Java code to query and add operations on the information in the table.
In this paper, we research the development of enterprise’s express letter system at first,and then introduce the principles of sending SMS and mails, After that, we made a elaboration of the summary of the system design, function modules, database design,business card folder management capabilities, as well as of the e-mail function’s concreterealization.Finally, we show the system’s effect.The enterprise’s express letter system is a mobile business of application systemwhich sets SMS and E-mail as a whole .The system software is specificallycustom-developed for internal and external needs and applications. It is fully integrated enterprise business promotion, customer intelligence, communication, internal management applications. The enterprise’s express letter system of the role is to help businesses solve internal, corporate and external communication difficult, not timely issemination of information and other issues. To this end, the system provides functions as java mail, BSwing , personnel files, information management and so on. The system is a typical example of the GSM Modem and e-mail in the enterprise business applications, so it will be subject to the favor of many enterprises, the best choice for business communications.
Key words:Java Mail;BSwing;Express Letter
目录
摘 要i
Abstractii
1 绪论1
1.1 开发背景1
1.2 国内外发展概况1
1.3 研究目的和意义1
1.4 研究主要内容2
2 系统分析3
2.1 需求分析3
2.2 可行性研究3
2.2.1 经济可行性3
2.2.2 技术可行性3
2.3 开发环境3
3 系统总体设计5
3.1 系统目标5
3.2 系统功能结构5
3.3 业务流程图5
3.4 系统预览6
3.5 文件夹组织结构7
4 系统详细设计8
4.1 数据库设计8
4.1.1 数据库分析8
4.1.2 数据库概念设计8
4.1.3 数据库逻辑结构设计9
4.2 公共模块设计10
4.2.1 数据库连接及操作类的编写10
4.2.2 字符串处理类的编写12
4.2.3 配置Struts13
4.3 主页设计14
4.3.1 主页概述14
4.3.2 主页技术分析15
4.4 名片夹管理模块设计17
4.4.1 名片夹管理模块概述17
4.4.2 名片夹管理模块技术分析17
4.4.3 查看客户信息列表的实现过程18
4.4.4 添加客户信息的实现过程19
4.4.5 删除客户信息的实现过程22
4.5 发送短信模块设计23
4.5.1 发送短信模块功能概述23
4.5.2 发送短信的实现过程23
4.5.3 发送短信模块技术分析24
4.5.4 单元测试28
4.6 发送邮件模块设计28
4.6.1 发送邮件模块功能概述28
4.6.2 发送邮件模块技术分析28
4.6.3 发送邮件模块实现过程29
4.6.4 单元测试32
5 技术分析33
5.1 开发技巧与难点分析33
5.1.1 添加收信人33
5.1.2 插入短信33
5.2 使用Java Mail 组件34
5.2.1 Session 类34
5.2.2 Address 类35
5.2.3 Authenticator 类35
5.2.4 Transport 类35
结论36
参考文献37
致 谢38