Java 1.6 Desktop.mail problem

J

JavaEnquirer

Does anyone know how I should encode the "body section" of the URI
parameter if I want to open a new Outlook mail message which conatins
HTML? If anyone has an example URI that achieves this I'll jump for
joy as my investigations has got me nowhere!

Many thanks in advance.
 
J

JavaEnquirer

Still no luck. If the html string is over 500 chars long it always
blows up - java.io.Exception Error message: Access is denied.

And, although the URLUTF8Encoder you pointed me at certainly encodes
the string I'm passing as the message body to the Desktop mail method,
Outlook doesn't render it as HTML. When sending a mail message
utilising the MimeMessage class in Java Mail you can set all manner of
things. Is it just me, or is the Java 1.6 Desktop class a backward
step when it comes to mailing?
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top