Jump to content

CreateObject("CDO.Message")


jeff kriz

Recommended Posts

I have been sending emails using CreateObject("CDO.Message")by hard coding the email which receives it. I need to send it to a email which is a varible : using the line :Mail.To = c_emailI checked and the email varible is there (I checked by using response.write "email = " & c_email)any reason why this will not work. It has worked on other webhosting companies.Please help, thx Jeff

Link to comment
Share on other sites

I have been sending emails using CreateObject("CDO.Message")by hard coding the email which receives it.  I need to send it to a email which is a varible : using the line :Mail.To      =  c_emailI checked and the email varible is there (I checked by using response.write "email = " & c_email)any reason why this will not work.  It has worked on other webhosting companies.Please help, thx Jeff

please post your code we cannot guess
Link to comment
Share on other sites

please post your code we cannot guess

code :Dim BodyMsg, Mail, BodyMsg2, Mail2'-------------SEND ORDER to customer ----'c_email = Record.fields("email1")Set Mail = CreateObject("CDO.Message")Mail.From = "Sales@GCsilver.com"Mail.To = c_email Mail.subject = "gcsilver.com Order # " & c_keyBodyMsg = "Thank You For Your Order." & Chr(10)BodyMsg = BodyMsg + "Print A Copy Of This For Your Records !" & Chr(10)Mail.TextBody = BodyMsgMail.SendSet Mail = nothing
Link to comment
Share on other sites

your code appears correct...You said it worked on other hosts??? Did you just change hosting companies??? Are you sure this company uses CDOSYS??? Some use CDONTS which is different.Make sure this method is supported.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...