In this tutorial, we see how to develop a simple Contact Page webform. This Contact Page is going to be a similar one to what we usually see in our day to day experience out in internet. Here we use AJAX HTML editor to enable Html email to the owner of the website. The basic outline would be – Users provide their general details like name and email, and also they can provide Html Message (using AJAX HTML Editor) in the Contact Page, where a basic validation is done as first step. Then we take the Html string, and send the same in the email to the authorized person of the website (typically owner) using SMTP settings (System.Net.Mail namespace). For ease of use, we use Gmail SMTP settings (host and port) for sending email. For better interactivity UpdateProgress control is used to show the progress of email routine.
Most Popular (Last 7 days)
- How to send an Email using C# - complete features
- Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records PART - II
- JQuery POST & GET Request to WCF Service in ASP.Net MVC
- Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records – Part I
- Create a Simple WCF service against Pubs Database using EF, LINQ – Part I
- Create a Simple WCF Service Client against Pubs Database using EF, LINQ – Part II
- Simple Html Editor based Comments Section with Captcha feature along with Database Interactivity
- Access Code-behind variables in ASPX and JavaScript
- ASP.Net MVC–Simple Application Security using Password Hashing before storing it to Database
- Access JavaScript Variables in Code-Behind Class
Most Popular (All time)
- How to send an Email using C# - complete features (21595 views )
- Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records PART - II (14165 views )
- Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records – Part I (8825 views )
- JQuery POST & GET Request to WCF Service in ASP.Net MVC (8757 views )
- Create a Simple WCF service against Pubs Database using EF, LINQ – Part I (8563 views )
- Access Code-behind variables in ASPX and JavaScript (8546 views )
- Create a Simple WCF Service Client against Pubs Database using EF, LINQ – Part II (6852 views )
- Access JavaScript Variables in Code-Behind Class (6679 views )
- Simple Html Editor based Comments Section with Captcha feature along with Database Interactivity (6332 views )
- Data Transfer between two ASP.NET Pages (5788 views )
- Save the World (5121 views )
- Retrieve files from a table in Database using Generic Handler (3936 views )
- ASP.Net MVC–Simple Application Security using Password Hashing before storing it to Database (3790 views )
- Save files to a table in Database using FileUpload control (3490 views )
- AJAX HTML Editor based Contact Form inside UpdatePanel along with UpdateProgress (3416 views )
- How to download files from server to client using a Generic Handler (3051 views )
- JQuery Quickies #1 – GalleryView Plugin by Jack Anderson (2982 views )
- Book Review - MCTS Exam 70-536 Microsoft .NET Framework – Application Development Foundation Self Paced Training Kit - Tony Northrup (2939 views )
- File Download by Anil (2879 views )
- Enumerating, Managing and Monitoring File system using C# (2816 views )
JumpStart Tutorials
- JumpStart # 11 - Xml Comments for code using GhostDoc Extension
- JumpStart # 10 – Display Validation Error Messages in different formats using JavaScript
- JumpStart # 9 – Make Response.Redirect() open in New Blank Window
- JumpStart # 8 – Making Client CallBacks by Implementing ICallBackEventHandler Interface
- JumpStart # 7 – Handling UserControl’s Event from Parent Page
- JumpStart # 6 – Accessing CheckBoxList Control in JavaScript and making a Mandatory Selection Enabled
- JumpStart # 5 – Access Properties of a UserControl from other UserControl in ASP.Net Page
- JumpStart # 4 – validateRequest in ASP.Net
- JumpStart # 3 – ViewStateMode in ASP.Net 4.0
- JumpStart # 2 – OUT Parameter in C#
- JumpStart # 1 - Using Optional And Named Parameters in C#
Latest Entries
AJAX HTML Editor based Contact Form inside UpdatePanel along with UpdateProgress
RamiVemula on September 7, 2010 at 11:47 pm
Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records PART – II
RamiVemula on August 23, 2010 at 1:03 am
In this part of the tutorial, we first create a Windows Service Project, then implement a Service called – ‘BirthdayEmailService’. Then we add a reference to our previously created Class Library – ‘EmailComponent’. We code BirthdayEmailService using Timer to perform the email sending task for every hour. Then we incorporate the Installer classes for the purpose of installation. Finally a Setup and Deployment Project is created for the Service. Finally the complete Solution is build and the exe file is generated which is ready enough to get installed.
Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records – Part I
RamiVemula on August 23, 2010 at 1:00 am
In this tutorial, we learn how to send automated birthday wish emails to the customers of our product. We first design our database with basic details of every customer, and of course with a Email address field. Then we create a class library to hold the classes of database interactivity and to send email asynchronously. We use ADO.Net (for this tutorial I am skipping Entity Framework implementation, which usually I prefer to interact with Database. For generating EF modules of database, kindly watch this tutorial – Click Here) with a stored procedure for database interaction (primarily to fetch email ids of customers to whom we got to send birthday wishes). Then finally we use a Windows Service (which obviously run background in the server)through which the previously created class library is accessed and async emails are send.
How to send an Email using C# – complete features
RamiVemula on December 29, 2009 at 12:36 am
This article provides detailed information on how to send Email using C# in a step by step procedure. Although there are many articles on the web providing the same info, many of them left out some interesting concepts untouched. Concepts like Alternate Views, Linked Resources add an additional fragrance to the world of Email in C#.
Out of my experience in the fascinating world of ASP.NET and C#, it’s been observed that many of the new programmers often run into lot of doubtful scenarios while performing an Email assignment. The thought of helping new comers is my prior motivation which made me to write this article.Read More…
Filed under:C#






