class= " lineNumbers " del
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
|
class= del
class= ><%@LANGUAGE= " notpretty " " VBSCRIPT " CODEPAGE= " del id= " codeSnippet776817 " del
<%
Regolare il objConn = Server.CreateObject (“ADODB.Connection„)
objConn.ConnectionString = “Provider=Microsoft.Jet.OLEDB.4.0; Dati Source=„ & _
Server.MapPath ("/ATO/NOCCDB/NOCCUsers.mdb„) &„; “
objConn.Open
strMessage = richiesta. Formar (“messaggio„)
lo strMessage = sostituisce (strMessage, “'„, “'' ")
lo strMessage = sostituisce (strMessage, vbCrLf, “ ")
strSubject = richiesta. Formar (“oggetto„)
strPersonAddedOn = richiesta. Formar (“PersonAddedOn„)
strComputerName = richiesta. Formar (“ComputerName„)
strLoggedBy = richiesta. Formar (“LoggedBy„)
strLog = richiesta. Formar (“ceppo„)
'generare l'oggetto di collegamento
Regolare MesIns=CreateObject (“ADODB.Command„)
MesIns.ActiveConnection=objConn
mandtext di MesIns.com = “inserto nei VALORI di radiodiffusione (oggetto, PersonAddedOn, messaggio, ComputerName, LoggedBy, ceppo) (? ? ? ? ? ?)„
MesIns.Parameters.Append MesIns.CreateParameter (“@Subject„, 200, 1, 255, strSubject)
MesIns.Parameters.Append MesIns.CreateParameter (“@PersonAddedOn„, 200, 1, 255, strPersonAddedOn)
MesIns.Parameters.Append MesIns.CreateParameter (“@Message„, 200, 1, 255, strMessage)
MesIns.Parameters.Append MesIns.CreateParameter (“@ComputerName„, 200, 1, 255, strComputerName)
MesIns.Parameters.Append MesIns.CreateParameter (“@LoggedBy„, 200, 1, 255, strLoggedBy)
MesIns.Parameters.Append MesIns.CreateParameter (“@Log„, 200, 1, 255, strLog)
MesIns.Execute
rsMailList fioco
rsMailList_numRows fiochi
Regolare il rsMailList = Server.CreateObject (“ADODB.Recordset„)
rsMailList.ActiveConnection = objConn
rsMailList.Source = “SELEZIONANO * A PARTIRE da ATO_Pagers„
rsMailList.CursorType = 0
rsMailList.CursorLocation = 2
rsMailList.LockType = 1
rsMailList.Open ()
rsMailList_numRows = 0
%>
<%
Repeat1__numRows fioco
Repeat1__index fioco
Repeat1__numRows = -1
Repeat1__index = 0
rsMailList_numRows = rsMailList_numRows + Repeat1__numRows
%>
Soddisfare-Tipo testo/HTML " del http-equiv= di
Broadcast Message
<%
Mentre ((<> 0 di Repeat1__numRows) E (NON rsMailList.EOF))
%>
<%
myBody fioco
mySubject fioco
myBody = Request.Form (“messaggio„) &„ Sent da “& Request.Form (“LoggedBy„) & “ „
mySubject = Request.Form (“oggetto„)
myMail fioco
Regolare il myMail = Server.CreateObject (“CDONTS.NewMail„)
myMail.BodyFormat=0
myMail.MailFormat=0
myMail.From = “[email protected]„
myMail.To = (rsMailList.Fields.Item (“PagerEmail„). Valore) &„; “& (rsMailList.Fields.Item (“email„). Valore)
myMail.Subject = mySubject
myMail.Body = myBody
myMail.Send
myMail=nothing stabilito
%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsMailList.MoveNext ()
Wend
%>
<%Response.Redirect “ThankYou1.asp " %>
<%
rsMailList.Close ()
Regolare il rsMailList = niente
%>
|