Maarten Balliauw 5/5/2007

SendMailControl for ASP.NET

Read Original

The article presents a custom ASP.NET server control called SendMailControl, designed to simplify sending templated emails in web applications. It mimics the functionality of built-in controls like PasswordRecovery and CreateUserWizard by using a MailDefinition for properties like From, CC, Subject, and Body. The post includes the full C# source code for the control, explaining its basic usage and noting it provides a simple Send() method while leaving more advanced error handling (like SMTP exceptions) to the developer.

SendMailControl for ASP.NET

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

2
Introducing RSC Explorer
Dan Abramov 1 votes
4
Fragments Dec 11
Martin Fowler 1 votes
5
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
6
Refactoring English: Month 12
Michael Lynch 1 votes
8
10
You Gotta Push If You Wanna Pull
Gunnar Morling 1 votes