65.9K
CodeProject is changing. Read more.
Home

forms to email with visual web develpoer 2005, asp.net 2.0, and SMTP

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Dec 21, 2006

viewsIcon

13096

downloadIcon

86

a solution for sending forms to email with visual web develpoer 2005 and asp.net 2.0

Introduction

I would like share my code for sending forms to email with visual web developer 2005 and asp.net 2.0

I tried for ages to make a form that’s sends the information to my email address, and had heaps of problems, and heard it was easy, and I felt stupid
 
I did 
this google search and checked out heaps of walkthroughs on the matter, and slowly gained an understanding of how to put together some  asp.net 2.0 code that will send mail

Eventually I read this article for the second time and put ever thing together right:
http://aspnet.4guysfromrolla.com/articles/072606-1.aspx


The following code I believe is universal and should work for other people using asp.net 2.0 as long as they also "Configure SMTP e-mail settings" in their "ASP.Net Web Application Administration Tool" with "visual web developer 2005" -with their correct SMTP details. Note that you can make sure your SMTP server is accessible by setting it up in outlook express.