Results 1 to 3 of 3

Thread: [Outlook] security prompts

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    8

    [Outlook] security prompts

    I'm writing a standalone application that monitors my company's public exchange folder for any incoming help desk tickets.

    As the title of this post suggests, I'm running into the dreaded security prompts that constantly pop-up. This is unacceptable because this program is intended to be run on the desktop while the user works on other activities -- we can't have a security nag pop up every few minutes.

    From reading the various solutions out there, I am wondering if I am declaring my Outlook objects incorrectly. Is there a way to have my application assume the privileges of the user's existing and open Outlook session? What I've read indicates that the security warnings shouldn't appear if the user has an Outlook session already open (which will be the case for us).

    This is the code I'm using to dimension the objects:
    Code:
        Dim objOutlook As Outlook.Application = New Outlook.Application
            Dim objNS As Outlook.NameSpace = objOutlook.Session
            Dim objInBox As Outlook.MAPIFolder = objNS.Folders("...")
            Dim objItems As Outlook.Items = objInBox.Items
    We have a similar ticket monitor created in VB6 by another fellow that does not induce these security pop-ups. Unfortunately, I don't have access to the source code but I am fairly confident that he did not use any extravagant work-a-rounds.

    By the way, I'm using Visual Studio/VB 2010 and Outlook 2003.

    Thanks in advance for any help.

  2. #2
    Fanatic Member dmaruca's Avatar
    Join Date
    May 2006
    Location
    Jacksonville, FL
    Posts
    577

    Re: [Outlook] security prompts

    It's not really a case of privileges from my understanding. It's that you are now trying to use Outlook through the API, and Microsoft has nerfed that functionality. Once you try to do something risky, you get the popup. Outlook 2007 allows you to bypass this popup if you have registered antivirus. Outside of that I would recommend Outlook Redemption. Probably even better would be to find a .net library that allows you to work with exchange/mapi directly. The only reason I can think of that the VB6 program wouldn't get the popup is that they are not accessing the fields which flag the security popup or they are secretly using outlook redemption.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    8

    Re: [Outlook] security prompts

    Quote Originally Posted by dmaruca View Post
    The only reason I can think of that the VB6 program wouldn't get the popup is that they are not accessing the fields which flag the security popup
    I think you might be right. I believe the only two fields he used was to show the subject and time of the message. I know the "Subject" doesn't cause a security flag but "Creation Time" does. I just discovered, however, that "Received Time" does not. So I can use that instead.

    I'd really like to have access to the Sender Name, but from what it looks like that is a protected field as well. Does anyone know of a list that shows what is and is not protected?

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width