PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Outlook, command prompt and java
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Outlook, command prompt and java
![]() |
Outlook, command prompt and java |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. > > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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, |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

