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.
The CodeProject team have been writing software, building communities, and hosting CodeProject.com for over 20 years. We are passionate about helping developers share knowledge, learn new skills, and connect. We believe everyone can code, and every contribution, no matter how small, helps.
The CodeProject team is currently focussing on CodeProject.AI Server, a stand-alone, self-hosted server that provides AI inferencing services on any platform for any language. Learn AI by jumping in the deep end with us:
codeproject.com/AI.