Solved

Outlook Security Warning 2010

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

813 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

14 Experts available now in Live!

Get 1:1 Help Now