PDA

View Full Version : form submission using CDONTS email query



cabalstudios
February 14th, 2001, 02:05
Set objCDOMessage = Server.CreateObject("CDONTS.NewMail")
objCDOMessage.From = Emailaddress
objCDOMessage.To = "test@cabalstudios.co.uk"
objCDOMessage.Subject = "Contact Order Enquiry"
objCDOMessage.Body = Message
objCDOMessage.Send
Set objCDOMessage = Nothing

That's what I have in the asp file that sends me submission info, it it possible to edit the field,
objCDOMessage.To = "info@cabalstudios.co.uk"
so that it will also send an email to the customer example is it as easy as this objCDOMessage.To = "test@cabalstudios.co.uk" & Emailaddress <-- because I have tried that and it dosen't work.

or can I have a objCDOMessage.Cc = Emailaddress

any help will be appreciated. Thanks

cabalstudios
February 14th, 2001, 02:57
I have added the objCDOMessage.Cc = Emailaddress
but it dosen't seem to send both emails only i am receiving the email. any ideas?

ashben
February 14th, 2001, 12:08
objCDOMessage.To = "e1@mail.com,e2@mail.com,e3@mail.com ..."

Basically, e-mail addr. are seperated by a comma. Same way for the .CC & .BCC fields.