ASP 101 - Active Server Pages 101 - Web06
The Place ASP Developers Go!

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

ASP.NET version of "Email (HTML)"

Tired of sending plain text email messages from your website? Now you don't have to... this sample will show you how to send email messages that can be as lively as a web page from ASP.NET.

Aside from formatting the body of your message as HTML, the key to getting HTML-formatted email working is setting the BodyFormat attribute of the MailMessage object to MailFormat.Html. Until you do that, most mail clients won't render the HTML. The message will just appear as plain HTML and will look as if the user did a "View Source" on a web page.

Here's a zip file of the code (1.7 KB).

Play with the running version.

View the live source code.

Back to the "Email (HTML)" sample


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers