1. mail message = new mail();
  2. message.From = “abc@gmail.com”;
  3. message.To = “xyz@gmail.com”;
  4. message.Subject = “Test”;
  5. message.Body = “hello”;
  6. SmtpMail.SmtpServer = “localhost”;
  7. SmtpMail.Send(message);