I need to implement Email functionality in my Java application which will open microsoft outlook and attach a file from my directory. Has any implemented the same?
Here is the exact command you want:-
new ProcessBuilder("C:\\Program Files\\Microsoft Office\\Office14\\OUTLOOK.exe","/a","C:\\Desktop\\stackoverflow.txt").start();
First Argument-Path to Outlook.
Second Argument- Outlook attachment command.
Third Argument- Attachment path