I'm trying to use JavaMail to create an email message with an attachment. The problem is, that instead of getting an attached file, the email comes with the contents of the attachment displayed in the body of the message (the attachement is of an html file).
I've created a file object "htmlFile" which is made from a
String of text ("<html><head><title>some file</title></head><body>some text</body></html>").
Here's the excerpt of code that puts together the message:
What do I need to change to make the html file an attachment, and not display in the body of the email document?
[This message has been edited by Joe McGuire (edited October 18, 2001).]