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;

import java.io.IOException;

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


raja P Web Developer

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...