摘 要
针对邮件验证系统过程中存在的问题 ,采用PHP语言设计开发了基于ThinkPHP架构的邮件验证系统。本系统具有代码简洁、逻辑结构清晰、安全性高、可扩展性强等优点。使用该系统极大地提高了邮件的验证管理工作的效率。由于网络中邮件验证系统繁多、业务需求多变,基于各邮件服务器的邮件验证系统的维护和业务变更变得难以进行。为了极大地方便上网用户,系统使用了B/S技术来进行开发,避免了原有的C/S结构开发所带来的弊端。并且将E-mail系统和Web应用结合起来,用户仅通过浏览器访问邮件系统即可。本邮件系统的基本功能包括:用户登录、通讯录管理、邮件收取、邮件发送、查看邮件、邮件的管理功能。
本文从软件体系结构设计模式的角度入手,首先设计和实现一个支持密保邮箱发送邮件、管理等基本功能的邮件验证系统,并在此基础上添加各项扩展功能。在介绍Struts2和MVC整体架构相关理论的基础上,研究如何使用这些JAVA框架和技术,使用MyEclipse开发工具构建灵活、实用的邮件收发平台。该架构的主要优点是:易于维护和扩展,方便用户的掌握和使用。
此邮箱系统功能主要分为管理员管理和用户管理两大部分,管理员管理主要包括管理用户信息、删除用户等;用户管理主要包括用户个人信息的管理、个人邮箱的管理等。该系统可以根据对功能需求进行扩展和完善。
关键词:邮件验证系统; ThinkPHP框架; MVC; Struts2
Abstract
Currently, there are too many E-mail Management System, and too many business changing requirements, which results of E-mail Management System maintenance and operations become difficult to change. In order to greatly convenient of Internet users, the E-mail Management System used the B/S technology to carry on the development, which has avoided the malpractice of the traditional C/S structure. And combining the E-mail Management System and the Web application, then user can visit E-mail Management System just by opening the browser. The E-mail Management System basic function: the user registers, address list management, receiving the mail, sending the mail, reading the mail, mail management function.
In this paper, it firstly begins with the software architecture patterns, and then constructs an E-mail Management System which supports the basic functions, such as sending and receiving email,managing emailbox, next add the extension. On the basis of introducing Struts2 architecture and MVC structure, the paper discusses how to use these technologies and frameworks of JAVA to build a flexible, practical online teaching platform by ThinkPHP development tool. The main advantages of this structure are as follows, it solves the problems of maintainability and extendibility in traditional website systems; it enables users to more easily grasp and use this system.
This mail management system functions are divided into administrator and user management of two parts, the administrator management includes management of user information, delete users, etc.; The user management includes user personal information management, personal mailbox management. The system can be extended and improved based on functional requirements.
Key Words:E-mail Management System; ThinkPHP; MVC; Struts2
目 录
目 录 3
1. 绪论 6
1.1 选题背景 6
1.2 课题意义 6
1.3 课题的研究内容 6
1.4 论文的组织结构 7
2. 相关工具与技术介绍 8
2.1 系统开发的工具 8
2.1.1 ThinkPHP框架 8
2.1.2 SQL sever 2005 8
2.1.3 B/S架构编程体系 8
2.2 系统开发的技术 9
2.2.1 MVC理论基础 9
2.2.2 Struts2框架技术 11
3. 系统需求分析 13
3.1 用户需求 13
3.1.1 系统功能需求 13
3.1.2 用户端特性 14
3.1.3 运行环境需求 14
3.1.4 性能需求 14
3.1.5 软件属性需求 15
3.2 数据描述 15
3.2.1 数据字典 15
3.3 系统的总体设计 17
3.3.1 系统设计思想 17
3.3.2 系统模块说明 17
4. 数据库设计 18
4.1 概念结构设计 18
4.2 逻辑结构设计 18
5. 系统详细设计 20
5.1 系统模块总设计思想 20
5.2 登录管理模块 20
5.2.1 登录模块 20
5.2.2 系统主界面设计 21
5.2.3 会员模块 23
6. 系统测试 25
6.1 系统测试目的 25
6.2 系统测试方法 26
6.3 测试用例及分析 26
6.3.1 登录模块测试 26
6.4 本章小结 28
7. 总结与展望 29
7.1 本文总结 29
致谢 30
参考文献 31
引 言
中国是世界上Email账号最多的国家,也是发展最快、市场环境最复杂的国家。电子邮件的发展如同一面镜子,折射出中国的网络运营商及网民们在互联网发展过程中的种种心态。无论如何,电子邮件在人们的生活、工作、学习过程中,越来越普及。同时,还有一种趋势,将多种通信手段相结合,成为一个立体的、全方位的通信网络。这中间,电子邮件也在扮演着相当重要的角色。实在难以想象,如果没有了电子邮件,网民的生活是如何的。但大多网站邮箱功能过于强大,操作繁琐,不简单实用,甚至有的是收费邮箱,对于小型企业或集体用于内网通信成本过高。所以本系统针对于小范围人群内部通信设计,实现邮箱基本功能,操作简单易用。
本系统采用ThinkPHP框架开发,后台数据库采用SQL2005进行开发,系统总体分为三大模块:用户注册管理模块、邮箱管理模块,收发邮件和对邮件信息进行管理。通讯录管理模块,对联系人信息进行管理。