jeff kriz Posted February 7, 2006 Share Posted February 7, 2006 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 More sharing options...
aspnetguy Posted February 7, 2006 Share Posted February 7, 2006 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<{POST_SNAPBACK}> please post your code we cannot guess Link to comment Share on other sites More sharing options...
jeff kriz Posted February 8, 2006 Author Share Posted February 8, 2006 please post your code we cannot guess<{POST_SNAPBACK}> 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 More sharing options...
aspnetguy Posted February 8, 2006 Share Posted February 8, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now