We have a java application that currently uses the java.awt.desktop.mail() method to ‘spawn’ a mail composition window using the user’s default mail client. Works well for Outlook and Eudora users, but not at all for a new customer who is a Notes user.
Is there a way for a java application to get Notes to open a new message composition window (and perhaps pre-load the message Subject & Body with some text)? We do NOT want to automatically send the mail, just transfer the user to Notes.
Please also let me know what JARs (or other) I need to get from our client to implement this. IBM does not seem to have java Notes API’s posted for download…
Subject: what about using mailto system command
I’m not familiar with the java.awt.desktop.mail() method but what about using the mailto system command. If Notes is the default mail client on the workstation, this should open a new email message in Notes:
String temparray = {“cmd”, “/c”, “Start mailto:email@address?subject=subjecttext?body=bodytext”};
Runtime.getRuntime().exec(temparray);
Subject: Great idea!
Thank you, Oscar. This appears to be a good “inclusive” solution that doesn’t require a special build of the application for Notes users. Great thinking!!!
I’ve got it working in the non-Notes environment, and have my fingers crossed for the Notes test. Thanks again…