HTML code for email

  • Thread starter Thread starter rlucas
  • Start date Start date
R

rlucas

Okay, I'm forced to ask what is probably a stupid question.

Using System.Web.Mail.Message and SMTPMail I can email messages--COOL!

However, when I email an HTML file (loaded as a string using StreamReader) all
of the codes are displayed not the formatted page.

What code or Tag do I need to add to display the page correctly in an email?

Thanks for any help,
Rich Lucas
 
found in reference guide...
Dim MyMessage As MailMessage = New MailMessage()
MyMessage.BodyFormat = MailFormat.Html
 
Hi,

I've been watching this post because I would also like to do what you're
doing, so the answer helps us both.

But I don't fully follow 'loaded as a string using StreamReader' - could you
send me a code snippet that demonstrates this?

Tx
Bernie Yaeger
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top