PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Outlook, command prompt and java

Reply

Outlook, command prompt and java

 
Thread Tools Rate Thread
Old 04-12-2007, 07:59 PM   #1
vinod
Guest
 
Posts: n/a
Default Outlook, command prompt and java


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/com...ook.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.
  Reply With Quote
Old 04-12-2007, 10:01 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Outlook, command prompt and java

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"vinod" <vinod@discussions.microsoft.com> wrote in message
news:8C65A83E-52DE-4271-9350-59366D36C626@microsoft.com...
> 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/com...ook.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.



  Reply With Quote
Old 05-12-2007, 02:55 AM   #3
vinod
Guest
 
Posts: n/a
Default Re: Outlook, command prompt and java

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,

"Ken Slovak - [MVP - Outlook]" wrote:

> 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.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "vinod" <vinod@discussions.microsoft.com> wrote in message
> news:8C65A83E-52DE-4271-9350-59366D36C626@microsoft.com...
> > 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/com...ook.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.

>
>
>

  Reply With Quote
Old 05-12-2007, 01:55 PM   #4
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Outlook, command prompt and java

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"vinod" <vinod@discussions.microsoft.com> wrote in message
news:9DA8AE42-A3CF-4AF7-B0FA-C266C9F0DA00@microsoft.com...
> 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,



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off