You can use the System.Net.Mail.MailMessage and the System.Net.Mail.SmtpMail classes to send an email in your Web pages. In order to send an email through your mail server, you need to create an object of the SmtpClient class and set the server name, port, and credentials.
Liked By
Write Answer
How can you send an email message from an ASP.NET Web page?
Join MindStick Community
You have need login or register for voting of answers or question.
Sumit Kesarwani
25-Aug-2014You can use the System.Net.Mail.MailMessage and the System.Net.Mail.SmtpMail classes to send an email in your Web pages. In order to send an email through your mail server, you need to create an object of the SmtpClient class and set the server name, port, and credentials.