基于des加密算法的电子邮件的收发软件的开发毕业设计(编辑修改稿)内容摘要:
try { // 捕捉异常 if (rs != null) { // 当 ResultSet 对象的实例 rs 不为空时 ()。 // 关闭 ResultSet 对象 } if (stmt != null) { // 当 Statement 对象的实例 stmt 不为空时 ()。 // 关闭 Statement 对象 } if (conn != null) { // 当 Connection 对象的实例 conn 不为空时 ()。 // 关闭 Connection 对象 } } catch (Exception e) { ()。 // 输出异常信息 } } 主要模块设计 登录首页的设计 首页是用户最先使用的功能。 它 的设计质量关系到给用户的第一感觉,所以它的设计很重要。 首页展示如图 所示。 如何进入首页: 中配置: welefilelist welefile/welefile /welefilelist 陕西理工学院毕业设计 第 11 页 共 29 页 首页登录代码如下: 图 首页 设计图 table width=87% height=162 border=0 cellpadding=0 cellspacing=0 tr td width=20% height=35 align=centerPOP3 服务器: /td td width=80% input name=host type=text id=host size=30 value= title=POP3 服务器 (如: )/td /tr tr td width=20% height=35 align=centersmtp 服务器: /td td width=80% input name=host1 type=text id=host1 size=30 value= title=stmp 服务器 (如: )/td /tr tr td height=35 align=center邮箱名: /td tdinput name=username type=text id=username size=30 value= title=邮箱名 (如: )/td /tr tr td height=35 align=center密 码: /td tdinput name=pwd type=password id=pwd size=30 value= title=邮箱密码 /td /tr tr td height=50 /td tdinput name=Submit type=submit class=btn_bg value=登录 input name=Submit2 type=reset class=btn_bg value=重置 /td /tr /table /div Action 中主要代码: public void login(HttpServletRequest request,HttpServletResponse response){ String host=(host)。 String host1=(host1)。 陕西理工学院毕业设计 第 12 页 共 29 页 String username=(username)。 String password=(pwd)。 Store store=(host,username,password)。 //建立与邮件接收服务器的连接 if(store!=null){ HttpSession session=()。 (host,host)。 //保存主机名到 session 中 (host1,host1)。 //保存主机名到 session 中 (username,username)。 //保存邮箱名到 session 中 (pwd,password)。 //保存密码到 session 中 try { ().forward(request,response)。 ()。 //关闭与邮件接收服务器的连接 } catch (Exception e) { // TODO Autogenerated catch block ()。 } }else{ //将页面重定向到错误提示页 (error, 您输入的服务器、用户名或是密码错误,登录失败。 )。 try { ().forward(request, response)。 } catch (Exception e) { // TODO Autogenerated catch block ()。 } } //showEmail(request,response,store,false)。 } 发送邮件模块设计 页面展示如图 所示 : 图 邮件发送页面 展示 页面主要代码: table width=100% border=0 align=center cellpadding=0 cellspacing=0 陕西理工学院毕业设计 第 13 页 共 29 页 tr td valign=top background=images/ style=backgroundrepeat:norepeat。 backgroundposition:bottom class=tableBorder table width=96% border=0 align=center cellpadding=0 cellspacing=0 tr td height=23 align=center /td td width=58% height=23 align=center /td td width=22% align=left /td /tr tr td height=28 align=center发件人: /td td colspan=2 align=leftinput name=addresser type=text id=addresser title= 发 件人 value=%=(username).toString()% readonly=yes size=56/td /tr tr td width=20% height=55 align=center收件人: /td td colspan=2 align=left textarea name=addressee cols=54 rows=3 class=wenbenkuang id=addressee title=收件人/textarea /td /tr tr td height=28 align=center主 题: /td td colspan=2 align=leftinput name=title type=text id=title title=邮件主题 size=56/td /tr tr td height=28 align=center附件 1: /td td colspan=2 align=leftinput name=adjunct type=text id=adjunct title= 附件 size=39 readonly=yes input name=Submit3 type=button class=btn_grey value=上传附件 onClick=(39。 ?textName=adjunct39。 ,39。 39。 ,39。 width=350,height=15039。 )。 /td /tr tr td height=28 align=center附件 2: /td td colspan=2 align=leftinput name=adjunct1 type=text id=adjunct1 title=附件 size=39 readonly=yes input name=Submit32 type=button class=btn_grey value=上传附件 1 onClick=(39。 ?textName=adjunct139。 ,39。 39。 ,39。 width=350,height=15039。 )。 /td /tr tr td height=28 align=center内 容: /td td colspan=2 align=lefttextarea name=content cols=50 rows=10/textarea/td /tr tr td height=28 align=center /td 陕西理工学院毕业设计 第 14 页 共 29 页 td colspan=2 align=leftinput name=Submit type=submit class=btn_grey value=发送 input name=Submit2 type=reset class=btn_grey value=重置 /td /tr /table/td /tr /table Action 中主要代码: public int sendMail(SendM ailForm s) { int ret = 0。 String host = ()。 //POP3 服务器 String from = ()。 //发件人 String to = ()。 //收件人 String subject = ()。 //主题 String content = ()。 //邮件内容 String password = ()。 //发件人密码 String path = ()。 //附件 1 String path1=()。 //附件 2 try { String mailserver =smtp.+((39。 @39。 )+1,())。 //在 Inter 上发送邮件时 的代 码 String mailserver =host。 //在局域网内发送邮件时的代码 Properties prop = new Properties()。 //实例化 Properties 类 (, mailserver)。 //指定采用 SMTP 协议的邮件发送服务器的主机名 (, true)。 //指定 SMTP 服务器需要验证 Session sess = (prop)。 //根据已经配置的属性创建 Session 实例 (true)。 //设置调试标志 MimeMessage message = new MimeMessage(sess)。 //实例化 MimeMessage 类 (new InterAddress(from))。 // 给消息对象设置发件人 //设置收件人 String toArr[]=(,)。 //将以逗号分隔的收件人字符串转换为数 组 InterAddress[] to_mail=new InterAddress[]。 for(int i=0。 i。 i++){ to_mail[i]=new InterAddress(toArr[i])。基于des加密算法的电子邮件的收发软件的开发毕业设计(编辑修改稿)
相关推荐
DB 的代码进行了重新编写, 并改名为 Discuz!,既“令人惊异的讨论区”的意思。 进入到 20xx 年初,对于论坛软件的核心技术的开发开发组取得了巨大进展,在世界现有的该种类产品中创新性地实现了 PHP 语法的内核生成、更新机制和缓存的自动创建、以及编译模板系统这些独有的技术,通过对于这些核心技术的应用 Discuz!在效率和运载能力上得到了突飞猛进的提升, Discuz!
强细节,但是算法复杂度太高,邻域窗口大小需要手动操作不断尝试,还会引进许多噪声。 针对 上述问题,本文在 DSP 软件仿真环境下进行了灰度变换的实验。 通过实验发现这种方法对于灰度变化少的图像非常适用。 能有效地抑制背景的增强过度,减少细节简并,能得到层次感较好,特征鲜明的图像。 针对不同特点的图像采用相应的图像增强方法可以达到较好的增强效果。 实现结果表明
PIO)引脚 ● 灵活的 PLL 时钟发生器 ● 支持 ( JTAG)边界扫描接口 ● 548 引脚球栅阵列( BGA)封装( GDK 和 ZDK 支持), ● 548 引脚球栅阵列( BGA)封装( GNK 支持), ● 毕业设计(论文)报告纸 9 第三 章 Altium Designer 的使用 PROTEL 概述 PROTEL 是 ALTUUM 公司(前身为 PORTEL 公司)在 20
称之为脊椎 0);脊椎 0 连接了脊椎 1 和左右两只大腿;大腿连接小腿,再到脚掌,再往脚趾;而脊椎 1 则往上连接脊椎 2,再到脊椎 3,然后是脖子;此时脖子连接着头部和左右锁骨;锁骨连接上臂,再到下手臂 ,然后是手掌,再是手指。 其层次关系可由如下图 3 表示出来: 信息科学与技术学院 电子工程与信息科学系 ( EEIS) 8 图 3 三维人体模型关节层析结构图 从而
科目编号 C 12 先以该字段建立索引标记为“科目 编 号”的普通索引,再以该字段取 值前 4 位建立索引标记为“一级编 号”的普通索引。 月初余额方向 C 2 月初余额 C 14 2 本月借方合计 N 14 2 本月贷方合计 N 14 2 本年借方累计 N 14 2 本年贷方累计 N 14 2 月末余额方向 C 2 月末余额 N 14 2 图 3— 10 科目发生额及余额 登录许可 字段名
具有相同属性的实体具有共同的特性和性质。 用实体名及其属性名集合来抽象和描述同类实体,成为实体型。 6) 实体集( Entity set) 南京邮电大学 20xx 届本科生毕业设计(论文) 9 同型实体的集合称为实体集。 7) 联系( Relationship) 现实世界的事物之间是有联系的。 这种联系反映到信息世界中一般可以分为两类:一类是实体内部的联系,如组成实体的属性之间的联系