Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Java 1.6 Desktop.mail problem

Thread view: 
JavaEnquirer - 03 Feb 2007 11:30 GMT
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.
sdemchenko@gmail.com - 03 Feb 2007 22:59 GMT
Try to follow http://email.about.com/od/mailtoemaillinks/a/mailto_elements.htm
(overview) and http://www.w3.org/International/O-URL-code.html
(encoding).
JavaEnquirer - 04 Feb 2007 12:15 GMT
On 3 Feb, 22:59, sdemche...@gmail.com wrote:
> Try to followhttp://email.about.com/od/mailtoemaillinks/a/mailto_elements.htm
> (overview) andhttp://www.w3.org/International/O-URL-code.html
> (encoding).

Cheers!
JavaEnquirer - 04 Feb 2007 12:30 GMT
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?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.