bulksend.asp

来自「一个虚拟主机代理系统」· ASP 代码 · 共 28 行

ASP
28
字号
<!--- #include virtual=/smusermanager/utilities/config.asp --->
<!--- #include virtual=/smusermanager/utilities/utilities.asp --->
<%
if not application("smumdebugmode") then on error resume next
dim todo
dim n
set smummaildataconn = server.CreateObject("ADODB.Connection") 
smummaildataconn.Open smumconnstr
smummailquery = "select * from smum_messagequeuetbl"
set smummailrs = smummaildataconn.Execute(smummailquery) 
	if not smummailrs.eof then
		n = 0
		session("smumstartsend") = "started"
		do until smummailrs.eof
			result = sendmail(smummailrs("mesque_fromemail"),smummailrs("mesque_toemail"), smummailrs("mesque_fromname"), smummailrs("mesque_toname"), Application("smummailserver"), smummailrs("mesque_subject"), smummailrs("mesque_message"), Application("smummailcomponent"))
			Response.Write smummailrs("mesque_toemail") & " : " & result & "<br>"
			smummaildataconn.Execute("delete from smum_messagequeuetbl where mesque_id = "& smummailrs("mesque_id"))
			n = n + 1
			if n > 50 then Response.Redirect "/smusermanager/utilities/bulksend.asp"
		smummailrs.movenext
		loop
		session("smumstartsend") = ""
	end if
smummailrs.close
set smummailrs = nothing
session("smumstartsend") = ""
Response.Write "Queue Empty"
%>

⌨️ 快捷键说明

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