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?
According to these docs the command you need is
"path/to/Outlook.exe /c ipm.note /a "path/to/attachment""
Assemble this and run it via ProcessBuilder
ProcessBuilder
(Or listen to MarcoS who gives a very good example of why it's sometimes better not to literally answer questions :-))
2.1m questions
2.1m answers
60 comments
57.0k users