Sending emails in a Web Application has been a crucial task. ASP.NET provides method to send regular and html emails with attachments. A SMTP relay server is required to send emails from web applications. We can use the smtp.gmail.com service to send emails by using an authenticated user account. The following code shows how to send normal/regular emails by making changes in web.config file: a. Web.config File changes Make the following changes in the web.config file b. OnButton_Click MailMessage mail=new MailMessage(); mail.To.Add( receiver@gmail.com ); mail.From=new MailAddress( xx@gmail.com ); mail.Subject="Hi this is a test message"; mail.Body="Welcome to ASP.NET email sending"; SmtpClient smtp=new SmtpClient(); smtp.EnableSsl=true; smtp.Send(mail); This is a simple method of sending emails through ASP.NET pages.