Outlook, command prompt and java

  • Thread starter Thread starter vinod
  • Start date Start date
V

vinod

Hi,

I posted the below question in the MSDN forum and got a reply back but was
asked to use this forum. So I'm copy pasting everything to here.

My question:
Can anyone please direct me to where I can get information on commands I
would have to use from the command prompt to open up an outlook email with
some of the fields filled in like the To field, body of the message(with a
predefined template) and so on. I need to launch an Outlook email from java
and after searching the internet for a while I was suggested that I consult
the MSDN forum and I was also told that once I have the command to do
whatever I want to from the command prompt, I can do the same command in java.

Reply back:
You can look up command-line switches in Outlook Help by searching for
"command-line switches." However, unless by "template" you mean a published
Outlook custom form, what you want to do isn't possible from the command
line. Depending on the details and the size of the message body, it might be
possible by using a mailto command. Otherwise, you would need to use the
Outlook object model to automate the creation and display of the message.

FYI, this is not a general Office programming forum. It is for issues
related to Visual Studio Tools for Office. General Outlook programming
questions can be posted at
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba

So does anyone have any suggestions for me. I did look into the mailto
command. But since our application is a lot dynamic I don't think I would be
able to use it unless I keep changing the mailto link everytime soemthing
else changes. I also looked into the command-line switches. Unfortunately I
don't really understand all of the switches and have only reached until the
part where I can use /c ipm.note and /m emailname to create a new email
destined to someone in the To field. All that's left is Subject and Body. Are
there switches to include these.

Please help and thanks in advance for your help.
 
There are no startup switches for Subject or Body. You would have to use
Outlook automation code, which can be programmed from Java. You would open
Outlook, create an email and send it or whatever.
 
Hi Ken,

Thanks for your reply. Can you please point to where I can learn about
Outlook automation code. I'll be searching for it later when I get back to
work. So that should help me launch as many Outlook emails as I want with
various fields filled in with predefined stuff by the click of a button, rite?

Thanks very much,
 
The best place to start is at www.outlookcode.com. I don't think there's
much there (or pretty much anywhere) for samples of Outlook coding with java
but there are tons of samples there in other languages.
 
Back
Top