views:

27

answers:

1

Hi,

Can someone guide on how to build and run a simple email form in asp.net ? I just want to provide a textbox for the body on the website and a submit button below it. I however want to be able to wire the submit button such that it sends an email notification and also copies the contents of the email to a database. Detailed help would be much appreciated as I am new to asp.net programming. I understand that saving in the database part would be a little complicated however for now if I get the email part working it would be great.

Thanks.

+2  A: 

Sending email with .net is very simple. Here is a link that shows the few lines of code needed. http://weblogs.asp.net/scottgu/archive/2005/12/10/432854.aspx If you know how to add records to a database, you can see that doing it after sending the email is trivial

Andrey