![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I'm running a program in another language which can access all methods of
java, but doesn't have any Outlook integration, so I'm looking for a command it can execute to create a new Outlook email on a client machine, put in a To: address for them, attach a document, and leave it open for the user to edit. My first choice was a DOS command. I tried this... "c:\program files\microsoft office\office11\outlook.exe" /c ipm.note /m "mailto ![]() That command for some reason runs beautifully on my machine, but didn't run on another machine. When it doesn't run, it returns a message about "command line argument is invalid" but doesn't say what the problem could be. The command executes without the attachment, and the attachment is a valid file on both clients. In my next attempt I tried actually using the MS Office object, but that gives a security warning. I wrote this in vbscript... Dim EM Dim MailItem ' "Creating Outlook object" On Error Resume Next Set EM = GetObject(,"Outlook.Application") If Err.Number 0 Then Set EM = CreateObject("Outlook.Application") End If ' "Creating e-mail item" Set MailItem = EM.CreateItem(0) ' "Setting Email Subject" MailItem.Subject = "A Test" ' "Setting Email Body" MailItem.Body = "This text is in the body" ' "Setting Email Recipient" MailItem.Recipients.Add " ' "Adding Attachments" MailItem.Attachments.Add "c:\pdf995\output\Q0001447.pdf" ' "Displaying Email Item" MailItem.Display(True) Wscript.Quit When it gets to Recipients.Add, it prompts the user if they want to allow it to access their address book. I'm not trying to view anything in their address book. I'm trying to add a recipient using an already known email address. It's not supposed to be getting any information from their Outlook, it's not sending any mail, there shouldn't be any warning. |
Ads |
#2
|
|||
|
|||
![]()
I have no idea about the command line, never use them.
For the security that's inescapable if you are using anything earlier than Outlook 2007, unless you take one of the usual workarounds. See http://www.outlookcode.com/article.aspx?id=52 for more information. -- 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 "Eric" wrote in message ... I'm running a program in another language which can access all methods of java, but doesn't have any Outlook integration, so I'm looking for a command it can execute to create a new Outlook email on a client machine, put in a To: address for them, attach a document, and leave it open for the user to edit. My first choice was a DOS command. I tried this... "c:\program files\microsoft office\office11\outlook.exe" /c ipm.note /m "mailto ![]() That command for some reason runs beautifully on my machine, but didn't run on another machine. When it doesn't run, it returns a message about "command line argument is invalid" but doesn't say what the problem could be. The command executes without the attachment, and the attachment is a valid file on both clients. In my next attempt I tried actually using the MS Office object, but that gives a security warning. I wrote this in vbscript... Dim EM Dim MailItem ' "Creating Outlook object" On Error Resume Next Set EM = GetObject(,"Outlook.Application") If Err.Number 0 Then Set EM = CreateObject("Outlook.Application") End If ' "Creating e-mail item" Set MailItem = EM.CreateItem(0) ' "Setting Email Subject" MailItem.Subject = "A Test" ' "Setting Email Body" MailItem.Body = "This text is in the body" ' "Setting Email Recipient" MailItem.Recipients.Add " ' "Adding Attachments" MailItem.Attachments.Add "c:\pdf995\output\Q0001447.pdf" ' "Displaying Email Item" MailItem.Display(True) Wscript.Quit When it gets to Recipients.Add, it prompts the user if they want to allow it to access their address book. I'm not trying to view anything in their address book. I'm trying to add a recipient using an already known email address. It's not supposed to be getting any information from their Outlook, it's not sending any mail, there shouldn't be any warning. |
#3
|
|||
|
|||
![]()
I already read that page today. I didn't see anything in there that seems
usable. Isn't there a way to assign a recipient to an email with the Outlook object without a security warning? I'm not trying to get any information from Outlook. I'm not trying to send any email. I just created an email and attached a file, which it doesn't have a problem with, and I want to fill in the To address field. I can't seem to get anything in there using the To property and the Recipients property keeps giving a security warning. "Ken Slovak - [MVP - Outlook]" wrote in message ... I have no idea about the command line, never use them. For the security that's inescapable if you are using anything earlier than Outlook 2007, unless you take one of the usual workarounds. See http://www.outlookcode.com/article.aspx?id=52 for more information. -- 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 "Eric" wrote in message ... I'm running a program in another language which can access all methods of java, but doesn't have any Outlook integration, so I'm looking for a command it can execute to create a new Outlook email on a client machine, put in a To: address for them, attach a document, and leave it open for the user to edit. My first choice was a DOS command. I tried this... "c:\program files\microsoft office\office11\outlook.exe" /c ipm.note /m "mailto ![]() That command for some reason runs beautifully on my machine, but didn't run on another machine. When it doesn't run, it returns a message about "command line argument is invalid" but doesn't say what the problem could be. The command executes without the attachment, and the attachment is a valid file on both clients. In my next attempt I tried actually using the MS Office object, but that gives a security warning. I wrote this in vbscript... Dim EM Dim MailItem ' "Creating Outlook object" On Error Resume Next Set EM = GetObject(,"Outlook.Application") If Err.Number 0 Then Set EM = CreateObject("Outlook.Application") End If ' "Creating e-mail item" Set MailItem = EM.CreateItem(0) ' "Setting Email Subject" MailItem.Subject = "A Test" ' "Setting Email Body" MailItem.Body = "This text is in the body" ' "Setting Email Recipient" MailItem.Recipients.Add " ' "Adding Attachments" MailItem.Attachments.Add "c:\pdf995\output\Q0001447.pdf" ' "Displaying Email Item" MailItem.Display(True) Wscript.Quit When it gets to Recipients.Add, it prompts the user if they want to allow it to access their address book. I'm not trying to view anything in their address book. I'm trying to add a recipient using an already known email address. It's not supposed to be getting any information from their Outlook, it's not sending any mail, there shouldn't be any warning. |
#4
|
|||
|
|||
![]()
This will require installing a DLL on each of your clients, but ever
try Redemption? http://www.dimastr.com/redemption/ http://tech.groups.yahoo.com/group/Outlook-Redemption/ |
#5
|
|||
|
|||
![]()
That depends on what you consider as usable. I personally use Redemption,
some people like the MAPILabs Outlook Security Manager, others like ClickYes. If you read the article there, you know your options to avoid the security. There are no other options. So use one of the workarounds, or live with the security. -- 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 "Eric" wrote in message ... I already read that page today. I didn't see anything in there that seems usable. Isn't there a way to assign a recipient to an email with the Outlook object without a security warning? I'm not trying to get any information from Outlook. I'm not trying to send any email. I just created an email and attached a file, which it doesn't have a problem with, and I want to fill in the To address field. I can't seem to get anything in there using the To property and the Recipients property keeps giving a security warning. |
#6
|
|||
|
|||
![]()
I'm not sure I understand Redemption. Is that a program to install? I'm
hoping to not have to install anything, much less install or update anything on each client that needs to run this. It's for a local network app, so I was hoping MS had some security for the Outlook object that could be as simple as their security for IE (If I create an HTML for the LAN and write in a "saved by www.mylocaldomain.com" line it doesn't warn when I run scripts). "Ken Slovak - [MVP - Outlook]" wrote in message ... That depends on what you consider as usable. I personally use Redemption, some people like the MAPILabs Outlook Security Manager, others like ClickYes. If you read the article there, you know your options to avoid the security. There are no other options. So use one of the workarounds, or live with the security. -- 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 "Eric" wrote in message ... I already read that page today. I didn't see anything in there that seems usable. Isn't there a way to assign a recipient to an email with the Outlook object without a security warning? I'm not trying to get any information from Outlook. I'm not trying to send any email. I just created an email and attached a file, which it doesn't have a problem with, and I want to fill in the To address field. I can't seem to get anything in there using the To property and the Recipients property keeps giving a security warning. |
#7
|
|||
|
|||
![]()
Redemption is a DLL and must be installed and registered on every machine
where it's used. Unless you are using Outlook 2007 your only options are what's listed on that page I showed you. There are no other options. Wishing won't make it so. -- 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 "Eric" wrote in message ... I'm not sure I understand Redemption. Is that a program to install? I'm hoping to not have to install anything, much less install or update anything on each client that needs to run this. It's for a local network app, so I was hoping MS had some security for the Outlook object that could be as simple as their security for IE (If I create an HTML for the LAN and write in a "saved by www.mylocaldomain.com" line it doesn't warn when I run scripts). |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatically Route Message? | G | Outlook - Using Forms | 1 | September 25th 07 06:08 PM |
Automatically Route Message? - Follow-Up | G | Outlook - Using Forms | 7 | August 20th 07 08:46 PM |
prevent e-mail message recipients automatically forward a message | IH | Outlook - Using Forms | 3 | November 1st 06 09:00 PM |
Automatically forward message | BruceS | Outlook and VBA | 9 | September 16th 06 08:13 AM |
How do I delete a message then automatically go to next messaage. | seeker | Outlook - General Queries | 1 | August 20th 06 06:39 AM |