Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP form - update database record AND send email

Status
Not open for further replies.

eghudak

Programmer
Jul 23, 2002
1
US
I have a form on my Intranet site that currently updates an Access database. It works fine. But, now I want to not only update my database, but also send an email to a recipient whose email address is dependent on what the user chose on the form.

FYI I have formmail for my cgi script.

How do I code my "Update Record" form button to not only update a record, but to automatically send an email?
 
In the same portion of your code responsible for sending the update to the database you can follow it with a CDONTS email.
For an already written example check out the FAQs : If I knew how to link to them I would, but heres the FAQ:
ASP 101 - p
Explains updating to a SQL Server database and then emailing the changes.
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top