1、 1 摘摘 要要 电子邮件在当今社会中扮演了一个很重要的角色。越来越多的人在使用 它。而且用它的人数势必会继续增加。虽然,现在已经有很多的邮件收发软 件例如著名的 FoxMail 但是对于大多数的非专业的人来说它还是有点难度 稍嫌负责。因此,我们就利用 SMTP 和 Pop 协议从底层开发了这个软件。SMTP 全称是简单邮件传输协议,它专门用来发送邮件用的。 Pop 全称是邮局协议, 是专门用于接收邮件的。我主要是负责如何实现发送邮件功能的。MailSend 命名空间是我整个程序的核心。它包括两个类。在 SmtpMail 的类中包含了 一个 SendMail 的方法,它从底层详细地实现了和服务
2、器的交互操作。你既 可以用它发送一个纯文本邮件,也可以发送一个带有附件的邮件,理所当然 地,你也可以使用不同的 SMTP 服务器。经过测试,证实此软件是一个支持 多收信人,多附件的群发软件。虽然它没有 FoxMail 那么强大的功能,但是 它容易掌握和使用。 关键字:SMTP,命名空间,类,附件 2 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.Though there
3、 are a lot of software for sending and receiving letters such as FoxMail which are also multifunctional,it is difficult and complicated to the Most of people who are curbstone.For this reason,we do this software with the rock-bottom protocol of SMTP and Pop. The full name of SMTP is Simple Mail Tran
4、sfer Protocol.It is Used to sending letters.The full name of Pop is Post Office Protocol which is Special to receive letters.I basically take charge to how to realize the function of sending letters. A namespace which is named MailSend is the soul of my programe.It includes two classes.A method name
5、d sendmial which realize the fuction step by step belongs to the class of SmtpMail. It detailedly note the track of client exchange to the server. You can use the software to send either a text E Mail or a textE-mail with Attachments.You also can Send a letter to many addressee. In the nature of thi
6、ngs,you can use a different SMTP service. The software I did support multiletters and multisender after I test.It is simplier than FoxMail and other professional softwares,but it is easy to hold and use. Key Words: SMTP,nameSpace,Class,Attachment 3 目目 录录 摘 要 1 Abstract 2 目 录 3 一 引言 5 11 电子邮件介绍 . 5 12 开发背景 6 13 开发环境及运行环境. 6 131 开发环境 6 二 软件架构及系统用例图 7 21 系统架构 7 22 系统总体用例 . 7 2.3 程序功能框图 . 8 24 发送邮件类. 8 25 附加小功能类 . 8 三 SMTP 协议的研究. 9 31 SMTP 协议简介及工作原理. 9 311 介绍 . 9 312 SMTP 模型