Solved

Outlook Security Warning 2010

Posted on 2010-08-23
2
1,755 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
  • 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 500 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now