Link to home
Start Free TrialLog in
Avatar of SeanNij
SeanNijFlag for South Africa

asked on

Outlook Security Warning 2010

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

Avatar of Geek_Nabil
Geek_Nabil
Flag of Qatar image

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

ASKER CERTIFIED SOLUTION
Avatar of Geek_Nabil
Geek_Nabil
Flag of Qatar image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial