Home > DeveloperSection > Interviews > How can you send an email message from an ASP.NET Web page?

Posted on    August-25-2014 12:01 AM

 ASP.Net ASP.Net 
 1 Answer(s)
  909  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    August-25-2014 12:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick