sendmail.asp

来自「Activity——活动管理模块 Analyse——分析模块 Client—」· ASP 代码 · 共 72 行

ASP
72
字号
<%
'*****************************************************
' Author       : Jianfeng Hua
' Date         : 2004.8.11
' File         : DeleteTouchmanlist.asp
' Description  : Deletes Touchmen from database
'*****************************************************
%>
<!--#include file='../conn.asp'-->
<!--#include file='../IsUser.asp'-->

<%
	set mymail=server.CreateObject ("CDONTS.Newmail")
	MyAddress = Request("MyAddress")
	MailTopic = Request("MailTopic")
	MailContent = Request("MailContent")
	mymail.mailformat=0
	mymail.bodyformat=0
	mymail.from = Myaddress
	mymail.subject = MailTopic
	mymail.body = MailContent
	SendEmailAdress = ""
	Eflag = 1
	For Each item in request.form
		if Left(item, 10) = "CkSendMail" then
			 if Eflag = 1 then
			 SendEmailAdress = request(item)
			 Eflag = 0
			 else
			 SendEmailAdress = SendEmailAdress & "," & request(item)
			 end if
		end if
	Next
	mymail.to = SendEmailAdress
	mymail.send
%>

	<html>
	<head>
	<title>发送邮件</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<LINK 
	href="../css.css" type=text/css rel=stylesheet>
	</head>

	<body>

	<br>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align=center>
	  <tr>
		<td width="100%" height="197" align="center">
	<table border="0" cellspacing="0" cellpadding="0" height="85" bgcolor="#99ccff" width="100%">
	<tr>
	<td align="center">
	<a href="Touchmanlist.asp" class=linkblue2>已发送邮件</a>
	<%
		response.write "<script>"
			response.write "setTimeout("&Chr(34)&"location.replace('Email.asp')"&Chr(34)&",2000)"
		response.write "</script>"
	%>

	</td>
	</tr>
	</table>
	</td>
	</tr>
	</table>
	<p>

	</body>
	</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?