欢迎光临
我们一直在努力

在ASP中用EasyMailObject组件处理Exchange邮件源代码(6)

建站超值云服务器,限时71元/月

发送邮件的界面(sendmail1.asp)

<%@ language="vbscript" %>

<%

*************************************

这个文件是发送邮件或回复邮件的界面

作者:awayeah

邮箱:awayeah@163.net

*************************************

取得回信地址

replyaddr=request.querystring("addr")

取得要回邮件的主题

replysubj=replace(request.querystring("subject"),"_",space(1))

%>

<script language="vbscript">

sub cmdsubmit_onclick()

if trim(frmsendmail.receive1.value)="" then

alert ("尚未输入收件人地址,请输入!")

frmsendmail.receive1.focus

else

frmsendmail.submit

end if

end sub

</script>

<html>

<head>

<meta http-equiv="content-language" content="zh-cn">

<meta http-equiv="content-type" content="text/html; charset=gb2312">

<meta name="generator" content="microsoft frontpage 4.0">

<meta name="progid" content="frontpage.editor.document">

<title>发邮件</title>

</head>

<body bgcolor="#008080" text="#00ffff">

<div span=1 align=center>

<form method="post" action="p_sendmail.asp" name="frmsendmail">

<table border="1" width="455" cellspacing="1" bgcolor="#800080">

<tr>

<td width="92">

<p align="right"><b>发 件 人</b></p>

</td>

<td width="347"><input type="text" name="from" size="40"></td>

</tr>

<tr>

<td width="92"><b>发件人邮箱</b></td>

<td width="347"><input type="text" name="fromaddr" size="40"></td>

</tr>

</table>

<table border="1" width="455" height="56" bgcolor="#000080">

<tr>

<td width="52" height="23">

<p align="center"><b>收件人</b></p>

</td>

<td width="387" height="23">

<p align="left"><input type="text" name="receive1" value="<%=replyaddr%>" size="40"></p>

</td>

</tr>

<tr>

<td width="52" height="23">

<p align="center"><b>主 题</b></p>

</td>

<td width="387" height="23">

<p align="left"><input type="text" name="subject" value="<%=replysubj%>" size="40"></p>

</td>

</tr>

<tr>

<td width="445" colspan="2" height="1">

<table border="0" width="100%" height="184" cellspacing="0" cellpadding="0">

<tr>

<td width="8%" height="178">

<p align="center"><b>内</b>

<p align="center"> 

<p align="center"><b>容</b>

<p> </td>

<td width="92%" height="178"><textarea rows="10" name="bodytext" value="<%=bodytext%>" cols="55"></textarea></td>

</tr>

</table>

</td>

<tr> <td width="52">

<p align="center"><b>附 件</b></p>

</td> <td width="387"><input type="file" name="att" size="20"></td></tr>

</table>

<p align="center"><input type="button" value="发送" name="cmdsubmit"> <input type="reset" value="全部重写" name="b2"></p>

</form>

</div>

</body>

</html>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 在ASP中用EasyMailObject组件处理Exchange邮件源代码(6)
分享到: 更多 (0)

相关推荐

  • 暂无文章