Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: ASP.NET .NET ASP.NET and C# Email Form Tutorial

A simple contact form demonstrating sending an email using C# from an ASP.NET form.

Tutorial Details:

ASP.NET and C# Email Form

Everyone wants forms to email them information. Contact, support, enquiries and the rest. You'll end up using this code in just about every project you undertake. The code below is a simple example of sending a forms data with an email.

The first method in the C# SendMail function demonstrates emailing without smtp authentication. The second demonstrates emailing with smtp authentication. You will need a valid email address and password at the smtp server you specify for the second method.

Only basic validation is implemented - forms have any non-empty value, and the email address has an @ and a '.'. In some circumstances you would want to implement a better check for the email address at least, as well as strip out html from the message field etc.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
ASP.NET .NET ASP.NET and C# Email Form Tutorial

View Tutorial:
ASP.NET .NET ASP.NET and C# Email Form Tutorial

Related Tutorials:

JavaWorld - Net News Central
JavaWorld - Net News Central
 
C# : A language alternative or just J--? (part1)
C# : A language alternative or just J--? (part1)
 
JavaMail quick start
JavaMail quick start
 
Integrate Java and C++ with Jace
Integrate Java and C++ with Jace
 
Rumble in the jungle: J2EE versus .Net, Part 1
Rumble in the jungle: J2EE versus .Net, Part 1
 
A first look at JavaServer Faces, Part I
A first look at JavaServer Faces, Part Learn how to implement Web-based user interfaces with JSF
 
Test email components in your software
Test email components in your software
 
Java and .Net interoperability using CORBA
Java and .Net interoperability using CORBA A recently released product takes the pain out of implementing object-level calls between Java and .Net While the need for interoperability between Java and .Net has become a common problem in larger organ
 
JLAN Server v3.3
JLAN Server v3.3 JLAN Server is a high performance JavaTM based file server supporting Windows file sharing (SMB/CIFS), NFS and FTP protocols. Write your own virtual filesystems with the core server handling all protocol exchanges with the client. Incl
 
Lucene in Action
Lucene in Action Lucene is a gem in the open-source world--a highly scalable, fast search engine. It delivers performance and is disarmingly easy to use. Lucene in Action is the authoritative guide to Lucene. It describes how to index your data, includin
 
Welcome to the Apache Struts Tutorial
This is the complete Struts Tutorial. Explains ActionForm Action Class Validation Framework.
 
Interoperability with Patterns and Strategies for Document-Based Web Services
In Part 2 of this article, we demonstrate interoperability for document-driven web services with Microsoft .NET (C#) using strategies discussed in Part 1.
 
Open Source Web Frameworks in Java
Open Source Web Frameworks in Java Open Source Web Frameworks in Java Struts Struts Frame work is the implementation of Model-View-Controller (MVC) design pattern for the JSP. Struts is maintained as a part of Apache Jakarta project and is open
 
Building Web Application With Ant and Deploying on Jboss 3.0
Building Web Application With Ant and Deploying on Jboss 3.0 Building Web Application With Ant and Deploying on Jboss 3.0 Previous Tutorial Index Next In this lesson I will show you how to build you web application and install on the Jboss 3.0
 
developing a Session Bean and a Servlet and deploy the web application on JBoss 3.0
developing a Session Bean and a Servlet and deploy the web application on JBoss 3.0 Writing Calculator Session Bean and Calling through JSP Previous Tutorial Index Next In this lesson I will show you how to develop a Calculator Stateless Session
 
Submit project to get developed
Submit project to get developed T his page contains answers to common questions handled by our support staff, along with some tips and tricks that we have found useful and presented here as questions. How do I Submit my Project ? Who can submit a
 
Submit a Request for a Project to be done
Submit a Request for a Project to be done Fill this form to Submit a Request for a Project to be done. User's Personal Details Name : Address: Email: Project Name: Project Description Language to be used: Delivery Date:
 
Your suggestions
Your suggestions Use the form on this page to tell us your ideas for enhancing our products, or improving our customer service, or anything else that comes to mind. Subject: Suggestion: Your name: Your Email:
 
Struts Validator Framework Tutorial with Example
Struts Validator Framework Tutorial with Example Struts HTML Tags Struts Validator Framework This lesson introduces you the Struts Validator Framework. In this lesson you will learn how to use Struts Validator Framework to validate the user
 
What is WAP? Detailed discussion of WAP API with examples.
What is WAP? Detailed discussion of WAP API with examples. Learn WAP in 60 minutes W ireless Application Protocol or WAP for short, allows the developers to develop next generation web application for cellular devices. Through WAP enabled mobile
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.