Guest_imported
New member
- Jan 1, 1970
- 0
I have embedded the following lines of code in my ASP page. Once I submit the page an email is supposed to arrive in my mail tray. It worked for the longest time, but now I have received mail in 2 days from this code. How do I debug it? Is there any logs on the server I can check? Is there a setting on the server I can set to display more information? I get no error messages.
CODE
<%
set objCDOMAIL = server.CreateObject("CDONTS.NEWMail"
strBody = "Image Serial Number(s) requested: " & Request.Form("hdnImgSerialNos"& " " & chr(13)
strBody = strBody & "Date Required: " & request.Form("txtDateRequestedBy" & " " & chr(13)
strBody = strBody & "Comments: " & Request.Form("txtComments" & " " & chr(13)
strBody = strBody & chr(13)
strbody = strBody & "Contact Information" & chr(13)
strBody = strBody & chr(13)
strBody = strBody & "User ID: " & gUserID & " Order Date: " & gCurrentDate & " " & chr(13)
strBody = strBody & "First Name: " & gFirstName & " Initials: " & gInitials & " " & chr(13)
strBody = strBody & "Last Name: " & gLastName & " " & chr(13)
strBody = strBody & "Group: " & gGroupName & " " & chr(13)
strBody = strBody & "Phone: " & Request.Form("txtPhone" & " Fax: " & Request.Form("txtFax" & " " & chr(13)
strBody = strBody & "Email: " & Request.Form("txtEmail" & " " & chr(13)
strBody = strBody & chr(13)
strBody = strBody & "Mailing Address" & chr(13)
strBody = strBody & chr(13)
strBody = strBody & "Street: " & Request.Form("txtStreet" & " " & chr(13)
strBody = strBody & "City: " & Request.Form("txtCity" & " Province/State:" & Request.Form("txtProvinceState" & " " & chr(13)
strBody = strBody & "Country: " & Request.Form("txtCountry" & " Postal Code: " & Request.Form("txtPostalCode" & " " & chr(13)
strBody = strBody & "********************** END OF EMAIL **************************" & chr(13)
objCDOMail.From = "admin <test@test.com>"
objCDOMail.To = "myemailaddress@here.com"
objCDOMail.Subject = "Image Request"
objCDOMail.Body = strBody
objCDOMail.Send
set objCDOMail = Nothing
%>
CODE
<%
set objCDOMAIL = server.CreateObject("CDONTS.NEWMail"
strBody = "Image Serial Number(s) requested: " & Request.Form("hdnImgSerialNos"& " " & chr(13)
strBody = strBody & "Date Required: " & request.Form("txtDateRequestedBy" & " " & chr(13)
strBody = strBody & "Comments: " & Request.Form("txtComments" & " " & chr(13)
strBody = strBody & chr(13)
strbody = strBody & "Contact Information" & chr(13)
strBody = strBody & chr(13)
strBody = strBody & "User ID: " & gUserID & " Order Date: " & gCurrentDate & " " & chr(13)
strBody = strBody & "First Name: " & gFirstName & " Initials: " & gInitials & " " & chr(13)
strBody = strBody & "Last Name: " & gLastName & " " & chr(13)
strBody = strBody & "Group: " & gGroupName & " " & chr(13)
strBody = strBody & "Phone: " & Request.Form("txtPhone" & " Fax: " & Request.Form("txtFax" & " " & chr(13)
strBody = strBody & "Email: " & Request.Form("txtEmail" & " " & chr(13)
strBody = strBody & chr(13)
strBody = strBody & "Mailing Address" & chr(13)
strBody = strBody & chr(13)
strBody = strBody & "Street: " & Request.Form("txtStreet" & " " & chr(13)
strBody = strBody & "City: " & Request.Form("txtCity" & " Province/State:" & Request.Form("txtProvinceState" & " " & chr(13)
strBody = strBody & "Country: " & Request.Form("txtCountry" & " Postal Code: " & Request.Form("txtPostalCode" & " " & chr(13)
strBody = strBody & "********************** END OF EMAIL **************************" & chr(13)
objCDOMail.From = "admin <test@test.com>"
objCDOMail.To = "myemailaddress@here.com"
objCDOMail.Subject = "Image Request"
objCDOMail.Body = strBody
objCDOMail.Send
set objCDOMail = Nothing
%>