泡泡堂服务端内有建站说明,喜欢玩泡泡堂的朋友下载开发.
源代码在线查看: sendmail.asp
软件大小: |
3830 K |
上传用户: |
lujing200912345 |
|
|
关键词: |
服务端
|
下载地址: |
免注册下载 普通下载
|
|
Response.Buffer=True
Server.ScriptTimeout=100000000
Dim rsMailing, objSendMail, DB
Dim strSQL, strTo, strFrom
Dim strSubject, strBody, mode
' mail constants (some are for reference)
Const CdoBodyFormatHTML = 0 ' Body property is HTML
Const CdoBodyFormatText = 1 ' Body property is plain text (default)
Const CdoMailFormatMime = 0 ' NewMail object is in MIME format
Const CdoMailFormatText = 1 ' NewMail object is plain text (default)
Const CdoLow = 0 ' Low importance
Const CdoNormal = 1 ' Normal importance (default)
Const CdoHigh = 2 ' High importance
%>
if mode "" then
strFrom ="BombGame"
strSubject = request("title")
if mode = "send" then
' 傈眉 雀盔皋老老 版快
strSQL = "select email, idx from ib_member where (email like '%@%') and nomail=0"
'strSQL = "select email, idx from ib_member where (email like '%@%') and nomail=0 and idx elseif mode = "test" then
strSQL = "select email, idx from mail_test where (email like '%@%') and nomail=0"
end if
Set rsMailing = DbCon.Execute(strSQL)
index = 0
Do Until rsMailing.EOF
strTo = rsMailing(0)
idx = rsMailing(1)
'strTo = "hypie017@hotmail.com"
If Not (IsNull(strTo)) AND (Instr(strTo, "@") 0) AND (Instr(strTo, ".") 0) Then
strBody = request("cnts")
' this line calls the MakePage() function to format the page as HTML
strBody = MakePage(strSubject, strBody, strTo)
Set objSendMail = CreateObject("CDONTS.NewMail")
objSendMail.From = strFrom
objSendMail.To = strTo
objSendMail.Subject = strSubject
objSendMail.Body = strBody
objSendMail.BodyFormat = CdoBodyFormatHTML
objSendMail.MailFormat = CdoMailFormatMime
objSendMail.Importance = CdoNormal
objSendMail.Send
Set objSendMail = nothing
response.write (strTo & " 俊霸 " & index & " 锅掳 皋老 惯价")
index = index + 1
End If
rsMailing.MoveNext
Loop
rsMailing.Close
Set rsMailing = nothing
' DB.Close
' Set DB = nothing
'皋老阑 焊辰 饶 mail_history 抛捞喉俊 规陛 焊辰 皋老阑 殿废茄促.(皋老 坷锹 眉农 棺 荐脚 犬牢伏阑 包府窍扁 困窍咯..)
senddate=now
title = strSubject
SQL ="insert mail_history (senddate, title, sendcount) values('" & now & "', '" & title & "', " & index & " )"
response.write sql
DbCon.Execute(SQL)
%>
alert(' 疙俊霸 抛胶飘 皋老捞 惯价登菌嚼聪促.');
document.location.href="sendmail.asp";
alert(' 疙俊霸 傍瘤皋老捞 惯价登菌嚼聪促.');
document.location.href="sendmail.asp";
-->
' this function returns a properly formatted HTML page
Function MakePage(txtSubject, txtBody, strTo)
Dim txtTemp
'txtTemp = "" & vbCrLf
txtTemp = txtTemp & ""
txtTemp = txtTemp & txtSubject
txtTemp = txtTemp & "" & vbCrLf
txtTemp = txtTemp & txtBody
'皋老荐脚芭何(叼磊牢篮 概锅 官操绢 林绢具窃)
'==============================================================
txtTemp = txtTemp & " " & vbCrLf
txtTemp = txtTemp & " " & vbCrLf
txtTemp = txtTemp & " " & vbCrLf
txtTemp = txtTemp & " 夯 皋老篮 BombGame 雀盔 傈侩 皋老涝聪促. 荐脚阑 盔窍瘤 臼绰 版快 滚瓢阑 喘矾林矫扁 官而聪促. " & vbCrLf
txtTemp = txtTemp & " " & vbCrLf
'==============================================================
'皋老 坷锹 眉农
'==============================================================
txtTemp = txtTemp & "" & vbCrLf
'==============================================================
'txtTemp = txtTemp & ""
MakePage = txtTemp
End Function
' this function opens a file and returns the file's contents
Function ReadFile(txtFile)
Dim txtTemp, objFS, objFL
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFL = objFS.OpenTextFile(txtFile)
Do While Not objFL.AtEndOfStream
txtTemp = txtTemp & objFL.ReadLine
txtTemp = txtTemp & vbCrLf
Loop
objFL.Close
Set objFS = Nothing
ReadFile = txtTemp
End Function
else
%>
function preview()
{
thisform=document.sendmail;
document.sendmail.target="_blank";
document.sendmail.action="Preview.asp";
document.sendmail.submit();
}
// -->
雀盔 傍瘤皋老 焊郴扁
馆靛矫 TEST葛靛肺 犬牢窍绊 傈眉皋老阑 惯价窍技夸!! 荤绊唱搁
奴老吵聪促!!
MODE
Test
Send
Test Mail List
strSQL = "select email from mail_test where (email like '%@%') and nomail=0 "
Set rsMailing = DbCon.Execute(strSQL)
'rsMailing.Open strSQL, DB,adOpenDynamic,adLockReadOnly,adCmdText
index = 0
Do Until rsMailing.EOF
strTo = rsMailing(0)
response.write (" " &strTo & "")
index = index + 1
rsMailing.MoveNext
Loop
rsMailing.Close
Set rsMailing = nothing
%>
力 格
郴 侩HTML CODE
end if
%>
|
相关资源 |
|
-
泡泡堂服务端内有建站说明,喜欢玩泡泡堂的朋友下载开发.
-
包括所有源文件类,加载容器类,FMS2.0服务端文件类 具体的请打开项目文件,所有文件都在那里 另外加点说明: config.xml,客户端和FMS服务端各有一个.两个设置要相同,里面是服务器运行路径
-
1. socket通信:有客户端和服务端的socket代码。
2. 多线程:客户端和服务端各用一线程发送信息;服务端另有一监听线程
-
使用CPLD仿真8088核,内有源程序和说明
-
vc的学生成绩管理系统。内有需求分析说明
-
16位循环冗余校验的4位查表法,用法在文件内有祥细说明
-
通讯串口程序,很使用,通过测试,内有源码说明
-
AVR单片机的原理与应用,内有大量源代码,供您使用,在您的开发项目中,节省很多时间和精力
|