![]() |
Sergey Kornilov admin 8/27/2004 |
Hi, strToEmail = "bgates@microsoft.com" strEmailAddress = "bgates@microsoft.com" Dim objCDO Set objCDO = Server.CreateObject("CDO.Message") objCDO.To = strToEmail objCDO.From = strEmailAddress objCDO.Subject = "New record was added" objCDO.TextBody = "New record was added" & vbcrlf For i = 1 To Request.Form("FieldName").Count objCDO.TextBody = objCDO.TextBody & Request.Form("FieldName")(i) & ": " & Request.Form(Request.Form("FieldName")(i)) & vbcrlf Next objCDO.Send Set objCDO = Nothing
|
V
|
visual author 9/7/2004 |
Thanks Sergey |
|
unique1 10/8/2004 |
Can you tell me which page you add this code to and exatly where? |
V
|
visual author 10/9/2004 |
I improved the code by testing if record has been actually entered. Code has been inserted in _add.asp just below If message <> "" then
|
|
unique1 10/9/2004 |
Thank you, I added it but it's not working right <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=2612&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' /> |