How Do I?

[How Do I:] Send Templated Emails for Health Monitoring Events in ASP.NET

By Chris Pels|25 minutes|
In this video Chris Pels shows how to use the TemplatedEmailWebEventProvider to send emails when health monitoring events occur that utilize a template for the email content. First, see how to configure the and elements in the web.config file to implement the use of templated email and associate a health monitoring event with the templated email provider. Once the templated provider is configured see how to create the email template using as standard .aspx page. Learn what information is available in the MailEventNotificaitonInfo class that is passed by the TemplatedEmailWebEventProvider to the template .aspx page. See how it can be used to include whatever information is appropriate in the email content. Finally, view the test web site which sends emails in response to health monitoring events. Then view the actual emails received that contain the health monitoring event information based upon the template.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on September 18, 2008

Author Information

Chris Pels

Chris Pels – Chris has been instrumental in the architecture, development, and implementation of a wide variety of business systems and databases as a technology consultant since 1986. He has extensive experience in business analysis, technical specifications, database design, several programming languages including C# and VB.NET, and statistical analysis. He holds a Ph.D. from The University of Michigan and has been a speaker at Microsoft TechEd, Microsoft DevDays, VSLive, numerous events in New England