Java: Open default mail application and create new mail and populate To and Subject fields
问题 Just wondering if anyone can help me with a problem I've come across in Java. Is there functionality within Java to produce a section of code that will open the default email application on a user's PC? (I guess almost like a fancy mailto link...) If there is - is it possible to populate fields such as the To and Subject fields? Thanks, Mike. 回答1: Desktop.mail(URI mailtoURI) is your friend! Javadoc: Launches the mail composing window of the user default mail client, filling the message fields