How to Send Emails in ASP.NET using C# Notes: import System.Net.Mail and System.Net packages on the top of the page. I have written a customised static method which can be directly called by class name anywhere in the project. The method SendMail takes 4 parameters. First parameter is body/content of the mail. Second parameter is Subject of the mail. Third parameter is To Email ID. Fourth parameter is From Email ID. The method SendMail returns true if mail is sent or false if mail is not sent. Steps to find Incoming Mail Server(SMTP). Step-1. Step-2. Step-3. Step-4. using System.Net.Mail; using System.Net; public static bool SendMail(string body, string subject, MailAddress to, MailAddress from) { try { //give Incoming Mail Server(SMTP) as host name. SmtpClient smtp = new SmtpCli...