【正文】
序,郵寄 EMail 給對方時,必須通過 SMTP 協(xié)議,將郵件發(fā)送到對方的郵件服務器上,等待對方查收。 2 SMTP 協(xié)議概述 協(xié)議簡介 SMTP,簡單郵件傳輸協(xié)議是 Simple Mail Transfer Protocol 的縮寫。實現(xiàn)了與郵件發(fā)送有關的基礎類,根據(jù)面向對象的特性,迅速的搭建了郵件的客戶端。 本畢業(yè)設計以 SMTP 協(xié)議為理論基礎,以面向對象的方式在 VC++ 平臺下進行實現(xiàn)。本軟件是為了研究 SMTP 協(xié)議而作的一個實驗型項目。本軟件實現(xiàn)的是用于發(fā)送郵件的SMTP 協(xié)議。在實現(xiàn)過程中加入了認證機制,因而,更安全、可靠。電子郵件技術具有方便、快捷、成本低廉等特性。 Client 目 錄 論文總頁數(shù): 28頁 1 引言 .............................................................................................................................. 5 2 SMTP 協(xié)議概述 ............................................................................................................. 5 協(xié)議簡介 ............................................................................................................ 5 協(xié)議原理 ............................................................................................................ 5 工作模型 ................................................................................................... 6 工作過程 ................................................................................................... 7 相關協(xié)議的簡單介紹 ......................................................................................... 10 3 軟件開發(fā)背景與環(huán)境 ....................................................................................................11 軟件開發(fā)背景 ....................................................................................................11 軟件開發(fā)環(huán)境 ....................................................................................................11 系統(tǒng)環(huán)境 ...................................................................................................11 工具簡介 ................................................................................................. 12 4 SMTP 協(xié)議客戶端軟件設計與實現(xiàn) ............................................................................... 12 需求分析與總體設計 ......................................................................................... 12 功能分析 ................................................................................................. 12 總體設計 ................................................................................................. 13 各模塊設計 ....................................................................................................... 14 實現(xiàn) SMTP 協(xié)議的核心類庫 .................................................................... 14 實現(xiàn)軟件的界面類 ................................................................................... 20 模塊之間的關系 ...................................................................................... 21 核心模塊實現(xiàn)與核心功能編碼 ........................................................................... 21 郵件發(fā)送實現(xiàn) .......................................................................................... 21 郵件內容相關實現(xiàn) ................................................................................... 24 郵件的編碼方式 ...................................................................................... 26 5 軟件測試 .................................................................................................................... 28 結 論 ........................................................................................................................ 30 參考文獻 ........................................................................................................................ 30 致 謝 ........................................................................................................................ 31 聲 明 ........................................................................................................................ 32 1 引言 隨著信息技術的發(fā)展、互聯(lián)網(wǎng)的普及,電子郵件已經(jīng)逐漸稱為人們正常工作和生活中進行溝通的重要手段。 EMail。但使用該手段發(fā)送的郵件正文可能 包含有惡意代碼,從而出現(xiàn)安全隱患,因此,在本設計中并沒有提供相關支持。該軟件實現(xiàn)了 SMTP協(xié)議,具有向郵件服務器發(fā)送身份驗證消息以及郵件的功能,使用戶能夠在本地通過客戶端程序向服務器發(fā)送郵件信息。該軟件的實現(xiàn)過程中對協(xié)議的工作模式和流程進行分析。論文著重對郵件服務所使用的 SMTP 協(xié)議進行了分析,并根據(jù) ESMTP 協(xié)議的規(guī)定添加了身份驗證的功能增加了 郵件服務的安全性。 畢業(yè)設計 ( 論文 ) 一個 SMTP 客戶端程序的設計與實現(xiàn) 論文作者姓名: 申請學位專業(yè): 申請學位類別: 指導教師姓名(職稱): 論文提交日期: 一個 SMTP 客戶端程序的設計與實現(xiàn) 摘 要 本論文是在實現(xiàn)了 SMTP 協(xié)議的客戶端軟件 MyEMail 開發(fā)的基礎上完成的,涉及到軟件的設計、實現(xiàn)以及測試等方面。通過本設計可以掌握 SMTP 協(xié)議,了解到當前郵件服務的一些不足。 MyEMail 軟件是根據(jù) SMTP 協(xié)議的原理、協(xié)議的模型以及工作過程 ,而設計出一款完整、實用的基于 SMTP 協(xié)議的客戶端軟件。從常規(guī)的郵件發(fā)送過程出發(fā),采用 C++語言在 VC++的平臺下,借助 VC++ 提供的應用程序框架 MFC加以實現(xiàn)。 目前,雖然協(xié)議規(guī)定在正文中可以使用網(wǎng)頁信息。 關鍵詞 : SMTP協(xié)議 ; 郵件 ; C++; 客戶端 The design and implementation of a SMTP Client Abstract This thesis is pleted in the foundation of the SMTP protocol client software MyEMail. It relates to the software design, implementation, testing and so on. Through the design, the SMTP protocol can be mastered and the deficiencies of current mail service can be understood. The thesis focuses on analyzing the SMTP protocol used by the mail service and adds the authentication function which will increase the mail service security according to the provisions of the protocol ESMTP. MyEMail SMTP software is based on the principles of the protocol, the model and working processes of agreement. And it is a practical and SMTP protocol based client software. The software analyzes the working model and processes of protocol. It starts with the conventional mail process and uses the C++ language and MFC framework in VC++ platform. The SMTP protocol is implemented in this software. It can send authentication information and to the mail server. The users can send authentication information and Email to the server through local software. At present, although the protocol stipulates that the website information can be used in the text, it means that the mail content can contain malicious code, which has potential safe problems. So, the support is not provided in the design. Key words: SMTP Protocol。 C++。采用電子郵件服務可以方便快捷的與朋友、同事或合作伙伴進行溝通, 傳遞信息。能夠大大減少信息傳遞的時間,比傳統(tǒng)的信件傳遞方式更快捷,成本也更低。 目前與郵件相關的協(xié)議大概可以分為兩種:一種是郵件發(fā)送協(xié)議―― SMTP