G
|
gwr477 author 8/10/2007 |
I am loading the following CDONTS code into version 5.0 "events/table events/add page/after record added" and everytime the add page loads it shoots off a blank email. How can I correct this? Dim objCDOMail Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = "forms@.com" objCDOMail.To = "name@.com" objCDOMail.Subject = "Contact Form" strBody = strBody & "Sender Name: " & GetRequestForm("YourName") & vbcrlf strBody = strBody & "Hire Status: " & GetRequestForm("HireStatus") & vbcrlf strBody = strBody & "Employee Name: " & GetRequestForm("EmployeeName") & vbcrlf strBody = strBody & "Class Title: " & GetRequestForm("ClassTitle") & vbcrlf strBody = strBody & "Department: " & GetRequestForm("Department") & vbcrlf objCDOMail.Body = strBody objCDOMail.Send Set objCDOMail = Nothing
|