+ Reply to Thread
Results 1 to 9 of 9

Disable Outlook Security Prompt

  1. #1
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Disable Outlook Security Prompt

    Hi,

    I am trying to find a way that I can disable the outlook security popup when using the the outlook email script. I have had to rewrite my module which originally used CDO to email, for half of the business who I have no control over their IT.

    Basically a module determines if your are using FirstClass as your default mail client, if you are it goes to the CDO script if not it goes to the Outlook mail object script using late binding.

    I need to find a way that I can handle the popup as the script sends multiple emails dependant upon the submission made by the person submitting the request using my form.

    I can't use anything that requires installation such as security manager and the users only have basic rights on their pc's.
    Last edited by mcinnes01; 03-14-2011 at 06:09 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Disable Outlook Security Prompt

    Quote Originally Posted by mcinnes01
    I can't use anything that requires installation such as security manager and the users only have basic rights on their pc's.
    In which case realistically you can't - if CDO not permitted.
    (we assume reverting to a pre-security prompt SP is not viable !!)

    Ron de Bruin offers a basic SendKey method but most would avoid it: http://www.rondebruin.nl/mail/prevent.htm

  3. #3
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: Disable Outlook Security Prompt

    Thanks donkeyote,

    Unfortunately half of our users are not on our network and port 25 on our mail server does not allow external requests, which I think is standard practice to avoid relaying. The only way that could be used to overcome this would be to allow fixed IP's of the other sites to use port 25, but I don't think this is viable or whether all the sites have fixed IP's as some are very small.

    I just successfully performed a test and got all the various emails as expect, but unfortunately there were 3 prompts from the security dialogue, there could be more dependant upon the number of requests submitted by the user.

    I wonder is there any setting in Outlook that can disable the pop up. I think I managed it on my 2010 outlook with the DEP option, but most of the staff as far as I know use 2003. Is there a similar option in 2003 or is there any VB code that can be pasted in to a module for outlook that can disable the dialogue? I appreciate this is an excel forum, but its worth enquiring.

    Cheers,

    Andy

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Disable Outlook Security Prompt

    Quote Originally Posted by mcinnes01
    I managed it on my 2010 outlook with the DEP option, but most of the staff as far as I know use 2003. Is there a similar option in 2003 or is there any VB code that can be pasted in to a module for outlook that can disable the dialogue?
    No, there is no standard functionality for 2003 that I'm aware of

    Given the above I would remind anyone replying that no "hack chat" is permitted on this board.
    the above is not aimed at any particular individual - just a general pre emptive reminder of policy

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Disable Outlook Security Prompt

    My recollection (and this is really not my area) is that you can build a COM add-in and have the administrator allow this to bypass the security prompts. I can't recall offhand if this has to be a .Net thing and then create a Shim or not.
    Remember what the dormouse said
    Feed your head

  6. #6
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: Disable Outlook Security Prompt

    Unfortunately some of our staff are based in council offices and so we litterally cannot have anything installed on their machines as you can imagine. I have just purchased VBMAPI security evader which gives me a virtual com addin made up by a load of class libraries.

    I suppose another method could have been to write an email script and have the staff add it to their outlook client and then the spreadsheet would call that, but the users have low level IT skills and I physically don't have time to talk hundreds of people through how to do this.

    Do you think VBMAPI security evader will solve my issue? And also I am using their example function:

    Please Login or Register  to view this content.

    This is called from various email modules such as, the following, but I keep getting a ByRef type missmatch on the Sendmail Send_To:

    Please Login or Register  to view this content.
    Last edited by romperstomper; 03-11-2011 at 12:56 PM. Reason: correct closing tag

  7. #7
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Disable Outlook Security Prompt

    Change:
    Please Login or Register  to view this content.
    to:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: Disable Outlook Security Prompt

    Hi

    Thanks RS, that seems to work, I also tried Byval on the function but thats probably wrong. The problem I still have though is that it won't send an email and says there is a problem attaching the file specified in the attachment string.

    I manage to get an email sent using your recomendation when remarking out the attachment from the code.

    The error is:

    2147212790
    E_FILE_NOT_FOUND (0x8004220A)
    File not found or is not accessible (perhaps open in another application?)

    As you can see in my code the file is a new workbook that is created and closed?

  9. #9
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: Disable Outlook Security Prompt

    Figure out where it was failing.

    Please Login or Register  to view this content.
    should be:


    Please Login or Register  to view this content.
    Thanks for the help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1