IN THIS CHAPTER
One of the most common uses of forms in a website is to send email. Sending email from a website used to be a complex and difficult task, but as with so many other tasks that used to be complex, ASP.NET makes sending email easy.
In this chapter you’ll see two different classes from the .NET Framework used to send email with ASP.NET; the
System.Net.SmtpClient class and the
SmtpClient class facilitates the sending of email with the Simple Mail Transfer Protocol or SMTP. The
SmtpClient class is used to connect your ASP.NET application ...