Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Email form not working after changing to CDO


  • Please log in to reply

#1
terryinobidos

terryinobidos

    New Member

  • Member
  • Pip
  • 7 posts
I recently changed the code for a contact form that sends details to a database and then emails me the results too. It worked in both browsers (Mozilla Firefox & I.E) using CDONTS, when I changed to CDO it works sporadically for I.E but all the time for firefox. The relevant code is below, any ideas anybody???
**********************************************************************
Set NewMailObj=CreateObject("CDO.Message")
NewMailObj.From = Request.Form("fldEmail")
NewMailObj.To = "terry@willat.net"
'NewMailObj.To = Request.Form("fldEmail")
NewMailObj.Subject = "A form from the Great Big Event website"
NewMailObj.HTMLBody = "Below is the result of the feedback form for -<b>"& Request.Form("fldEvent") & "</b><br>It was submitted by <strong>" & Request.Form("fldEmail") & "</strong> on "& when & "<br>***************************************************""<br><b>Name: </b>"& Request.Form("fldName") &"<br><b>Position: </b>"& Request.Form("fldPosition") &"<br><b>Organisation: </b>"& Request.Form("fldOrganisation") &"<br><b>Telephone: </b>"& Request.Form("fldTelephone") &"<br><b>Email: </b>"& Request.Form("fldEmail") &"<br><b>Address: </b>"& Request.Form("fldAddress") &"<br><b>Postcode: </b>"& Request.Form("fldPostcode") &"<br><b>Message: </b>"& Request.Form("fldMessage") &"<br><b>Additional & 3rd party info: </b>"& Request.Form("fldNoMarketing") &"<br>"

NewMailObj.Send
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP