Example usage for java.awt Desktop mail

List of usage examples for java.awt Desktop mail

Introduction

In this page you can find the example usage for java.awt Desktop mail.

Prototype

public void mail() throws IOException 

Source Link

Document

Launches the mail composing window of the user default mail client.

Usage

From source file:Main.java

public static void main(String[] a) throws Exception {
    Desktop desktop = null;
    if (Desktop.isDesktopSupported()) {
        desktop = Desktop.getDesktop();
    }//from ww  w .j  av  a2  s  .  co m

    desktop.mail();
}