If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > newbie cdonts to cdosys

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Registered User
Join Date: Dec 2012
Posts: 1
Red face newbie cdonts to cdosys

the hosting company doesn't have cdonts and now supports cdosys. I am not sure how to convert the old code (below) to cdosys. I get errors no matter what I do help!

dim str
dim strEmailBody
For Each str In request.form
strEmailBody = strEmailBody & str & ":" & request.form(str) & "<BR>" & vbCrLf

'email send
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "horses@yahoo.ca"
objMail.To = "horses@yahoo.ca"
objMail.Subject = "Riding form"
objMail.Body = strEmailBody

'send the mail

'destroy email object once sent to user
Set objMail = Nothing
'get the info from the form and set cookies

Dim name, LastName, email

name = Request.Form("fullName")
LastName = Request.Form("LastName")
email = Request.Form("email")

Response.Cookies("visit").Expires = #5/10/2015#
Response.Cookies("visit").Path = "/"
Response.Cookies("visit")("fullName") = fullName
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On