Solved

VB.NET disable Outlook Security message

Posted on 2011-09-08
2
443 Views
Last Modified: 2012-05-12
I have some VB.NET code that gets the first selected mail item in outlook, and saves this to disk (See code below.).  
This all works ok, except everytime the code runs, the outlook security message appears (see screen shot).
Is there any way is disabling this?

Any help would be appreciated. Outlook Sec Msg
Private sub SaveOutlookItem() 
    Dim outlook As New Microsoft.Office.Interop.Outlook.Application
    Dim explorer As Outlook.Explorer = outlook.ActiveExplorer
    Dim mail As Outlook.MailItem = CType(explorer.Selection.Item(1), Outlook.MailItem)
    mail.SaveAs("P:\test.msg")
End Function

Open in new window

0
Comment
Question by:bmsdev
[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 Comments
 
LVL 13

Expert Comment

by:khairil
ID: 36504007
Hi,

You can turn this off from outlook itself, here is how to do, http://msdn.microsoft.com/en-us/library/ms778202.aspx

Or using GPO if your user join the AD domain, http://technet.microsoft.com/en-us/library/cc179085(office.12).aspx
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 36506119
I use this free addin which allows the user to choose "Always perform this action for this file"

http://www.mapilab.com/outlook/security/
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

632 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