I just have a couple forms and the Submit button does this: sqldatasource1.insert()
I want to send an email when the form has been submitted to one email address. I don't really need all of the form fields in the email address, except for one txtClientName.
How can I write code to send email through smtp.gmail.com to one email address with the subject "An order has been submitted" and in the body "[txtClientName] has submitted a new order!"
Its a very simple email, just basically a "hey go check the orders" kind of thing...
If you could give me the code for the smtp setup as well as how to put hte message in, and how to tell the submit button to also send the email. I'd really appreciate it!!