text/html

From: Québec (notAgain_at_enough.ca)
Date: 06/01/04


Date: Tue, 1 Jun 2004 14:36:15 -0400

Hi everyone,

I cant have my application send the html format. How do I do that? below
some of my trials.

// create and fill the first message part
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setContent("text/html"); <<<<runs if I take off
this line but in
plain text only
mbp1.setText(msgText1, "ISO-8859-1");//us-ascii

....
the second part is attachement ( works)
...
// add the Multipart to the message
msg.setContent(mp);
................
msg.setContent("text/html");<<<< this dont works

Jean



Relevant Pages

  • text/html
    ... I cant have my application send the html format. ... // create and fill the first message part ... MimeBodyPart mbp1 = new MimeBodyPart; ...
    (comp.lang.java.help)
  • Help with NIO
    ... I read a lot of NIO concepts in books and internet but I cant find a ... Some of things that I cant understand: ... If I have a buffer of size of 1024, and a client send me a first ... message how I know when finish the this first message because maybe ...
    (comp.lang.java.programmer)