Link to home
Start Free TrialLog in
Avatar of thelmapc
thelmapc

asked on

Using Outlook with java

Is there any way of opening the Microsoft Outlook from a java app?
Avatar of m_onkey_boy
m_onkey_boy

Runtime.getRuntime().exec("c:\\Program Files\\Microsoft Office\\Office\\Outlook.exe");
Avatar of thelmapc

ASKER

Sorry, I wasn't specific enough.
Ok, with this command line I can call the outlook, but I need to create a new email, with an attach file.
If (and it's a real big 'if') Microsoft has an api to talk to outlook by manually taking over sdin, then you could do it by manipulating the process returned by the above call.
You should check out the MAPI interface microsoft provides.  This may prove to accomplish what you are looking for.
Or - check the java mail exesion:
http://java.sun.com/products/javamail/
How can I get more information about this MAPI interfaces microsoft provides?
ASKER CERTIFIED SOLUTION
Avatar of m_onkey_boy
m_onkey_boy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial