asp.net contact web form + send email

We've recently launched SouthLabs website, so once we received all the html+css&imgs from our designers we had to bring to life the site, and had to implement a basic contact us web form, with basic input validation, and support to send an email upon submit.

I figure this could might save someone 15 minutes worth of work (maybe myself in the future :) in case you need something similar.

 Input validation is performed with jQuery validation plugin, and emails are sent with a contact.ashx handler, that expects a gmail account config to send the email.

 ASP.NET Contact Form

The source code can be downloaded from here.

Published Friday, January 22, 2010 3:36 PM by gabouy
Filed under: ,

Comments

# re: asp.net contact web form + send email

Saturday, December 03, 2011 1:55 AM by shk.abdulazeem

sad

# re: asp.net contact web form + send email

Wednesday, February 15, 2012 2:20 AM by Richard Chang

Thanks for the article.

Had to change form to method="post" and the submit js to get it working

      <form id="contactForm" method="post" action="contact.ashx">

           $("#contactForm").submit();

           //Error: Unable to get value of the property 'form': object is null

           //this.document.form.submit();

Thx, Rick C

Leave a Comment

(required) 
(required) 
(optional)
(required)