Posted By:
Anonymous
Posted On:
Saturday, March 15, 2003 05:12 PM
Hello Madhan,
I agree with Chritopher that you probably are better off just sending the email using JavaMail (and thus justifying the conversation on this forum :)
However, if you insist, here is one way out:
Runtime.getRuntime().exec(new String[] {
"explorer"
, ""mailto:me@company.com?subject=my%20subject&body=the%20body""
});I think you'll need to encode the body using a url endoder.
Note that this way will first launch explorer which will look in the its preferences for the set mail application, and if none is set, then it will look in the registry for the installed default mail app. Note also that this choice is not platform independent.
Hope this helps ;)
-W