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

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
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


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers