Send a Completed Form Email Without a StringBuilder(john.rummell.info)
submitted by
johnrummell(1321) 2 years, 10 months ago
Have you ever had to create a large web form for users to fill out and then receive an email copy after its submitted? That can be tedious work. The first few times I did it, I used a StringBuilder to build the email HTML one control at a time. Later, I viewed the HTML output of the page and replaced all input controls with spans, and then put that HTML in a StringBuilder. Either of these methods work, but it gets real annoying when I later have to add a field or two to the form and therefore to the email HTML. This article uses a different, reusable approach.
|category: ASP.NET
|Views: 31
tags:
ASP.NET another
Everyones tags:
Your Tags: