I have an ASP.NET 1.1 (VB.net 2003) application that reads in an HTML file and emails it to a user. I am getting some quirky formatting problems. I'm using a web version of MS Exchange to receive the file.

Before I go into specifics, is there anything obvious I need to know about emailing a file in HTML format? Here's some code:


mymail.To = mailto
mymail.From = "[email protected]"
mymail.Priority = MailPriority.Normal
mymail.BodyFormat = MailFormat.Html
mymail.Subject = "Subject of message"
mymail.Body = message
SmtpMail.SmtpServer = "xxx.xxx.xxx.xxx"

SmtpMail.Send(mymail)