Sending Email in ASP.NET 2.0: HTML-Formatted Emails, Attachments, and Gracefully Handling SMTP Exceptions 02 Aug 2006 00:00 GMT
As detailed in last week's article, Sending Email in ASP.NET 2.0,
the .NET Framework version 2.0 includes a new namespace (System.Net.Mail) and new classes for sending email.
(The namespace (System.Web.Mail) and classes used in the .NET Framework version 1.x still exist for backwards
compatibility.) Last week we examined how to use the MailMessage and SmtpClient classes in the
System.Net.Mail namespace for sending simple, plain-text email messages.
This article looks at the more advanced email-related options. We'll see how to send HTML-formatted emails, how to include
attachments, and how to gracefully handle SMTP exceptions when sending an email (such as invalid relay server credentials or
if the relay server is offline). Read on to learn more!
This article assumes that you are already familiar with sending simple, plain-text emails from an ASP.NET 2.0 web page; if not,
please first read Sending Email in ASP.NET 2.0 before
tackling this article...
Read More >
Source: 4GuysFromRolla