ASP.NET: How Do I: Implement Error Handling when Sending Email with ASP.NET

Posted in Frameworks, Companies, Development on April 12, 2009


Get Microsoft Silverlight

Chris Pels shows how to implement error handling when sending an email with ASP.NET. He creates an ASP.NET web page to send email, shows how to configure in the web.config file, describes the System.Net.Mail class and how it’s used to create and send email messages. He then adds error handling using System.Net.Mail exception classes, which provide information about errors that can occur when sending email, and reviews the SmtpStatusCode enumeration, which provides a list of possible outcomes when sending an email with the SmtpClient. Finally, he sends a test email that raises an exception and reviews the error handling information in the Visual Studio debugger.

Presented by Chris Pels

Date: 06 November 2008

Watch Video Watch Video Watch Video on External Site

Tags: Frameworks, Microsoft, ASP.NET, .NET Framework, Broadcasting, Screencasts, Development, Companies