Click to See Complete Forum and Search --> : automated response and saving form data to database - asp.net


goldni
12-15-2008, 09:24 PM
hi i posted this before askin for help with frontpage (under client side developmetn). but now im using .net could you please help me thanks!

when someone enters any information on my site, i want the following:

1. instant automated response which sends an email to THEIR address confirming receipt of information.
2. automated email to MY address showing me the information they entered.
3. entering the data into a database (e.g. MS Access or anything else - please advice).

what is the best way to do this? if you can guide me that would be great! any help would be appreciated!

thanks in advance!

zingmatter
12-22-2008, 06:12 PM
Build 3 private functions in the code-behind page that get triggered with a submitbutton onClick event:

private void btnSubmitForm_onCLick(..) {
SendEmail(tbxCustomerEmail.Text);
SendEmal('MyEmail@address.com');
SaveDateToDB();
}

private void SendEmail(String TargetEmailAddress) {
//code to email
}

Hope that helps