Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Outlook Security Warning 2010

Posted on 2010-08-23
2
Medium Priority
?
1,765 Views
Last Modified: 2012-05-10
Hi all,

We have an inhouse grown MS Access application for managing our jobs etc. We have triggers in the application to send mail to various staff members.

Suddenly in Office 2010 the outlook is now popping up the "A program is trying to send an email message on your behalf" - Accept/Deny.

I seem to recall that this was a security feature enabled in 2003 and using late/early binding cant remember which / or the Docmd.Sendobject you could avoid the message box - but now its back on everything?


Is it my imagination or has Outlook/Office 2010 been updated recently to be more vigilant with that warning?

Thanks
Sean

0
Comment
Question by:SeanNij
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 4

Expert Comment

by:Geek_Nabil
ID: 33508051
To disable Outlook Security we use the DisableOOMWarnings property. But here is one peculiarity. To use Outlook Security Manager from inside of your Outlook  Automation application you should connect it to the Outlook.Application object used in your application. So, you use the ConnectTo method of the TOlSecurityManager class

Example in Visual Basic .NET

If you need further clarification let me know


Dim SecurityManager As New AddinExpress.Outlook.SecurityManager 
SecurityManager.ConnectTo(outlookApp) 
SecurityManager.DisableOOMWarnings = True 
Try 
  '... any action with protected objects such as contacts or items... 
Finally 
  ' In any case please remember 
  ' to turn on Outlook Security 
  ' after your code, since now 
  ' it is very easy to switch it off! :-) 
  SecurityManager.DisableOOMWarnings = False 
End Try

Open in new window

0
 
LVL 4

Accepted Solution

by:
Geek_Nabil earned 2000 total points
ID: 33508058
In case you use Visual Basic
Here is a VBA Script

OlSecurityManager.ConnectTo OutlookApp 
OlSecurityManager.DisableOOMWarnings = True 
On Error Goto Finally 
  '... any action with protected objects ... 
Finally: 
  OlSecurityManager.DisableOOMWarnings = False

Open in new window

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Mailbox Overload?
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question