Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Desktop;
- import java.net.URI;
- import java.net.URISyntaxException;
- import java.net.UnknownHostException;
- try {
- desktop.mail( new URI( "mailto:javaexamplecenter@gmail.com?subject=Test%20message" ) );
- }
- catch ( IOException ex )
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement