SmtpMail.Send in HTML format

  • Thread starter Thread starter bgsd
  • Start date Start date
B

bgsd

I'm trying to email a web page (exported from Crystal
Reports) via:

email.BodyFormat = MailFormat.Html
email.Body = sHTML 'Web Page imported via FileStream
System.Web.Mail.SmtpMail.Send(email)

The email is sent, but the formatting messed up.

1) I've confirmed the .htm file appears fine in IE6. All
tags are correct.
2) I've tried both HTML40 & HTML32 formats.

Any thoughts?

--bgsd
 
Hi,

Ensure the message content type is set to text/html.
I remember there also is a "MailFormat" property. You could try to set it to
the right value.
 
Back
Top