How to launch user-default mail client application?
Here is an example using the
java.awt.Desktop class to open user's default mail client application. There are two methods provided, the
mail() and the
mail(URI uri) methods.
When specifying the
URI to the application will be opened with the message field filled with the
mailto information. You can refer to the following document for the valid
mailto URI scheme http://www.ietf.org/rfc/rfc2368.txt.