<% 'If the form has not been submitted execute the following code If Request.Form="" Then %>
Send us your Comments.

Name
E-mail
Comment
   
 

<% 'If the form has been submitted execute the following code Else 'receive the form values Dim sName, sEmail, sFeedback sName=Request.Form("txtName") sEmail=Request.Form("txtEmail") sFeedback=Request.Form("txtFeedback") ' create the HTML formatted email text Dim sEmailText sEmailText = sEmailText & "" sEmailText = sEmailText & "" sEmailText = sEmailText & "HTML Email" sEmailText = sEmailText & "" sEmailText = sEmailText & "" sEmailText = sEmailText & "Comments message from: " & sName & "
" sEmailText = sEmailText & "Message:" & sComments & "
" sEmailText = sEmailText & "Date & Time:" & Now() & "
" sEmailText = sEmailText & "IP :" & Request.ServerVariables("REMOTE_ADDR") sEmailText = sEmailText & "" sEmailText = sEmailText & "" 'create the mail object Set NewMailObj=Server.CreateObject("CDONTS.NewMail") NewMailObj.From=sEmail NewMailObj.To = "ombudsman@comfort.navy.mil" NewMailObj.Subject = "Comments" NewMailObj.Body = sEmailText NewMailObj.Send Set NewMailObj=Nothing Response.write "
Thank you for sending your comments.
" Response.write "We will get back to you if necessary.
" Response.write "
click here to return to the home page return
" End If %>