These are the current Allegro Administration Email .asp files. There are some additional Filters I will not be including here. The different *.asp files I am separating by a line of "*".
PLEASE NOTE that unless you run NT and are connected to the actual Data Base, the files will not display any values. The SOURCE is seen in the View Menu , Source in full, which is the aim of this file.
Please Login
<% Dim objMsg, strFrom, strTo, strCc, strBcc, strSubject, strBody, lngImportance, lngAttachFile, lngMailFormat strFrom = Trim(Request.Form("From")) strTo = Trim(Request.Form("To")) strCc = Trim(Request.Form("Cc")) strBcc = Trim(Request.Form("Bcc")) strSubject = Trim(Request.Form("Subject")) strBody = Trim(Request.Form("Message")) lngAttachFile = Trim(Request.Form("optAttachfile")) lngMailFormat = Trim(Request.Form("MailFormat")) lngImportance = Trim(Request("optImportance")) Set objMsg = Server.CreateObject("CDONTS.NewMail") objMsg.From = strFrom objMsg.To = strTo objMsg.Subject = strSubject objMsg.Body = strBody objMsg.Importance = lngImportance objMsg.Cc = strCc objMsg.Bcc = strBcc objMsg.AttachFile ' insert location and file name like : objMsg.Attachfile "c:\boot.ini" onjMsg.MailFormat = CdoMailFormatTEXT 'I am using this as default, but can be reset to the commented line below: ' objMsg.MailFormat = CdoMailFormatMIME ' this transfers the message from plain txt or CdoMailFormatText to RTF. Could be reset back. objMsg.Send 'This can be sent in one line: 'objMsg.Send strFrom, strTo, strCc, strBcc, strAttachfile, strSubject, strBody, strMailFormat, lngImportance. . . Set objMsg = Nothing WriteHTML("CONFIRMATION: the following message was sent via CDO for NTS:") WriteHTML("From: " &strFrom) WriteHTML("To: " &strTo) WriteHTML("Cc: " &strCc) WriteHTML("Bcc: " &strBcc) WriteHTML("Subject: " &strSubject) WriteHTML("Importance: "&lngImportance) WriteHTML("MailFormat: "&lngMailFormat) WriteHTML("Body: " &strBody) 'WriteHTML("AttachFile "c:\boot.ini") 'if will be attaching a file remove comment at beginning and give the path and filename %> <% ' Next, the CDONTS object is instantiated with the Server.CreateObject method: Set objMsg = Server.CreateObject _ ("CDONTS.NewMail") ' Now that an instance of the object exists and the object's properties are set, ' the message is sent using the send method: objMsg.Send ' Alternative way to send message: ' Set objMsg = Server.CreateObject ' =>("CDONTS.NewMail") ' objMsg.Send strFrom, strTo, strSubject, ' =>strBody, lngImportance Set objMsg = nothing 'release objMsg %> <% Dim strConnect strConnect="provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Inetpub\wwwroot\Allegro\allegro.mdb" %>