Intract with your Email Application Using Java code.

In this following example you get idea how to interact with the email application from your java code.
// Comment
package com.sabari;


public class simpleemailer {
 public static void main(String[] args) throws IOException {
  String editorpath = "cmd.exe /c start ";
  String mailid = "mailto:[email protected]";
  Runtime.getRuntime().exec(editorpath + mailid);


Output Window

test Web Developer

No comments:

Post a comment

Related Posts Plugin for WordPress, Blogger...