Email Confirmation when new record added |
9/21/2005 11:19:59 PM |
ASPRunnerPro General questions | |
I've added the following to the _add page, and it works. It sends an email notification when someone adds a record to the database. I also want to send the data that was just posted in the body of the email. How would I refer to field names, so I can include them in the email body? Thanks! |
|
![]() |
Sergey Kornilov admin 9/22/2005 |
Hi, rs.Update rs.Close rs("Field1") rs("Field2")
|
|
501262 9/22/2005 |
same question- and I have this error |
![]() |
Sergey Kornilov admin 9/22/2005 |
Do not forget to put real SMTP server name there: objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "SMTP server"
|
|
cagleyleslie author 9/22/2005 |
Hi, you need to find and insert your code right before this snippet. So you'll be able to refer to data entered by user using this syntax (where Field1 and Field2 are your fieldnames).
|
|
cagleyleslie author 9/22/2005 |
Oh never mind! I got it! Before, I was putting the email code in between 'message' and 'end if.' But this time I added it before 'rs.Update' and it worked! Thanks again! |
A
|
apscnjohnnie 9/26/2005 |
I am really liking the info on the email notification but really can't seem to figure out how to include the field data in the message body. I have entered it in as it is shown in these posts right beneath the rs.Close line |
|
cagleyleslie author 9/26/2005 |
You have to add it BEFORE the rs.Close bit, and no quotes around it: |
![]() |
swat 9/29/2005 |
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "SMTP server" |
![]() |
swat 9/29/2005 |
Also- Can I use this email founction in the ...._list.asp file or ...search.asp file - let say user selects to see data from advance search or regular search field , is it possible to not display data but just email to his/her email address? |
![]() |
swat 9/29/2005 |
CDO.Message.1 error '80040213' |
![]() |
Sergey Kornilov admin 9/30/2005 |
Swat, |
|
orit 12/7/2005 |
I would like to send e-mail confirmation only when the user who enters the records decides that he want e-mail notification to be sent. |