Send Email in ASP.Net 2.0

There are some changes using ASP.NET 2.0 to handle email stuff.

Here is good sample article which provided by Gowrisankar K : “Send Email in ASP.Net 2.0 – Feed back Form”

The Send mail functionality is similar to Dotnet 1.1 except for few changes

   1. System.Net.Mail.SmtpClient is used instead of System.Web.Mail.SmtpMail (obsolete in Dotnet 2.0).
   2. System.Net.MailMessage Class is used instead of System.Web.Mail.MailMessage (obsolete in Dotnet 2.0)
   3. The System.Net.MailMessage class collects From address as MailAddress object.
   4. The System.Net.MailMessage class collects To, CC, Bcc addresses as MailAddressCollection.
   5. MailMessage Body Format is replaced by IsBodyHtml
…..