hello everyone!!!i have the same problem with my email page..
i have tried eveything but it just doesnt seem to work.
could some pls tell me the lines of code for creatins the object for mail..
i am currnently using the lines
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"
objCDOMail.From = Request.Form("firstName" & " " & Request.Form("lastName" & " <" & strReturnEmailAddress & ">"
objCDOMail.To = strMyEmailAddress
objCDOMail.Cc = strCCEmailAddress
objCDOMail.Bcc = strBCCEmailAddress
objCDOMail.Subject = "Enquiry sent from enquiry form on website"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = strBody
objCDOMail.Importance = 2
objCDOMail.Send
Set objCDOMail = Nothing
but it gives me an error sayin that "error creating object"
or else if some noe could tell me how i could just go to outlook fron the page after selecting the email id'd to where i wish to send the mails...without using the hreff..
cause i need to import the email id's from the sql server and then be able to out them in the cc text box and send the mail..implyin he sql server is my address bool..
thanks in advance cuase i know i can count u guyss
sameer
i have tried eveything but it just doesnt seem to work.
could some pls tell me the lines of code for creatins the object for mail..
i am currnently using the lines
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"
objCDOMail.From = Request.Form("firstName" & " " & Request.Form("lastName" & " <" & strReturnEmailAddress & ">"
objCDOMail.To = strMyEmailAddress
objCDOMail.Cc = strCCEmailAddress
objCDOMail.Bcc = strBCCEmailAddress
objCDOMail.Subject = "Enquiry sent from enquiry form on website"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = strBody
objCDOMail.Importance = 2
objCDOMail.Send
Set objCDOMail = Nothing
but it gives me an error sayin that "error creating object"
or else if some noe could tell me how i could just go to outlook fron the page after selecting the email id'd to where i wish to send the mails...without using the hreff..
cause i need to import the email id's from the sql server and then be able to out them in the cc text box and send the mail..implyin he sql server is my address bool..
thanks in advance cuase i know i can count u guyss
sameer