This topic is locked

Sending e-mail when a new record is added only if the user marks that

12/13/2005 2:10:06 PM
ASPRunnerPro General questions
orit author

(I sent similar question following other question but decided to open a new topic..)

I would like to send e-mail notification with the content of the record to specific e-mail address only when the user who enters the record decides that he want e-mail notification to be sent.

What I think to do is to add a checkbox saying "send notification". if the user marks this checkbox, an e-mail with the content of the record will be sent.
Can someone please suggest how to implement this?
Thanks

Sergey Kornilov admin 12/15/2005

Orit,
you can put your code to check user's input and to send email just after this line in ..._add.asp file:

rs.Update


You can use rs object to obtain user's input and sendmail function defined in include\commonfunctions.asp file to send emails.

orit author 12/15/2005

Can you please provide more details on how to do that?
Thanks a lot

Sergey Kornilov admin 12/15/2005

Orit,
I don't have a ready to go solution for this.