eeabe
Posts: 1
|
| Posted: 08/28/2006, 2:50 AM |
|
Can any one help me. I am new to cdonts and would like a bit of code that sends email from the server to myself (eugene@eeabe.co.uk) when a form is submitted that contains the senders name, date and time. I have used the email action on insert update to no effect.
Thanks
_________________
the dude |
 |
 |
Benjamin Krajmalnik
|
| Posted: 08/28/2006, 12:23 PM |
|
Unless you are running on NT4 (which I hope by now you are not), you are
better off using CDOSYS.
Set objCDO = Server.CreateObject("CDO.Message")
objCDO.To = "me@me.com"
objCDO.From = "whoever@wherever.com"
objCDO.cc = "cc@towherever.com"
txtMessage = "========================================================" &
CHR(13) & CHR(10)
txtMessage = txtMessage & "blah blah blah blah blah" & CHR(13) &CHR(10)
txtMessage = txtMessage &
"========================================================" & CHR(13)
&CHR(10)
= txtMessage &CHR(13) & CHR(10)
objCDO.Subject = "Subject of the message"
objCDO.TextBody = txtMessage
objCDO.Send
Set objCDO = Nothing
|
|
|
 |
cab33010
Posts: 26
|
| Posted: 08/29/2006, 8:11 PM |
|
Use ( Forms To Go ) does the best job http://www.bebosoft.com/products/formstogo/ and its cheap.
|
 |
 |
|