%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Dim cn : Set cn = Server.CreateObject("ADODB.Connection")
'-------------------------------
' Create database connection string, login and password variables
'-------------------------------
Dim strConn, strLogin, strPassword
strConn = "Driver={MySQL};DATABASE=fairla2_xmb3;UID=fairla2_issue;PASSWORD=coconuts"
%>
Your note will be forwarded to the Management Company.
Return to the Fair Lakes Condominium Home Page")
'Send a receipt to the person who wrote the email
Set newMsg = CreateObject("CDONTS.NewMail")
newMsg.BodyFormat=0
newMsg.From="do-not-reply@fairlakescondo.com"
newMsg.To = Request.Form("email")
newMsg.BCc = "robb.moskowitz@fairlakescondo.com"
newMsg.Subject = Request.Form("subject")
mailBody = "An Issue has been created on your behalf. Thank you.
"
mailBody = "" & mailBody & ""
newMsg.Body = mailBody
newMsg.Send
Set newMsg = nothing
'End Don't log the issue in the tracker, just send the email
ELSE
'Insert the issue now so that we have an issue number for the email
sSQL = "insert into issues (" & _
"issue_name," & _
"issue_desc," & _
"priority_id," & _
"status_id," & _
"assigned_to," & _
"date_submitted," & _
"user_id," & _
"assigned_to_orig)" & _
" values (" & _
"'" & addrAndSubject & "' ," & _
"'" & issueBody & "' ," & _
"3," & _
"1," & _
"1," & _
"DATE_ADD(SYSDATE(), INTERVAL 3 HOUR)," & _
"20," & _
"1" & _
")"
cn.Execute sSql
'Get the new issue number
'issueNumber = Dlookup("issues","max(issue_id)","user_id='20'")
issueNumber = cn.execute("select max(issue_id) from issues where user_id=20").Fields(0).Value
'response.write(issueNumber)
mailBody=mailBody + "
Respond to Unit Owner..."
mailBody = replace(mailBody,vbcrlf,"
") + ""
newMsg.Body = mailBody
newMsg.Send
success = 1
response.write ("
Your note will be forwarded to the Management Company.
Return to the Fair Lakes Condominium Home Page")
'Send a receipt to the person who wrote the email
Set newMsg = CreateObject("CDONTS.NewMail")
newMsg.BodyFormat=0
newMsg.From="do-not-reply@fairlakescondo.com"
newMsg.To = Request.Form("email")
newMsg.BCc = "robb.moskowitz@fairlakescondo.com"
newMsg.Subject = "Issue #" & issueNumber & ": " & Request.Form("subject")
mailBody = "Issue #" & issueNumber & " has been created on your behalf. Thank you.
"
mailBody = "" & mailBody & ""
newMsg.Body = mailBody
newMsg.Send
Set newMsg = nothing
END IF
End If
End If
If success = 0 Then
email_addr = Request.Form("email")
If email_addr = "" Then
email_addr = "12xxx"
End If
%>
Submit a Comment or Concern to the Management Company
<% End If %>