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
No comments:
Post a comment