Outlook security warning still displays

Add-in Express™ Support Service
That's what is more important than anything else

Outlook security warning still displays
 
Glenn r




Posts: 55
Joined: 2008-05-21
Andrei,

OK I got it to work. On my other machine I have a secman.dll registered in my c:\program files\common files folder. So I did the same. What is this file and what roles does it play in the use of SecurityManager.2005 and disabling warnings?

Thanks,
Glenn
Posted 11 Jan, 2010 09:43:45 Top
Andrei Smolin


Add-in Express team


Posts: 15212
Joined: 2006-05-11
Glenn,

This is the Security Manager itself; SecurityManager.2005 is just a wrapper.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 11 Jan, 2010 10:57:51 Top
Chris Dodson




Posts: 2
Joined: 2010-01-13
I am having the same problem, even after setting the Disable to True it still shows warnings:
Setup:
Windows XP Pro 2002 SP3
VB.net 2008 v9.0.21
.Net framework 3.5 SP1
Outlook version 2000 SP-3 (9.0.0.7308) - I know it's old, don't laugh

I have added the Outlook Security Manger .Net v5.0.2
and a COM reference to Microsoft outlook 9.0 object library
The secman.dll is located in C:\Program Files\Common Files\Outlook Security Manager and is registered

I am running the code through .net
Dim SecurityManger As New AddinExpress.Outlook.SecurityManager
        SecurityManger.DisableOOMWarnings = True
        'SecurityManger.DisableCDOWarnings = True
        'SecurityManger.DisableSMAPIWarnings = True
        Try
            ' Create an Outlook application.
            Dim oApp As Outlook.Application
            oApp = New Outlook.Application()

            ' Create a new MailItem.
            Dim oMsg As Outlook.MailItem
            oMsg = oApp.CreateItem(Outlook.OlItemType.olMailItem)
            oMsg.Subject = "Send Attachment Using OOM in Visual Basic .NET"
            'oMsg.Body = "Hello World" & vbCr & vbCr
            oMsg.HTMLBody = "[b]hello world[/b]"
            ' TODO: Replace with a valid e-mail address.
            oMsg.To = "chdodso"

            ' Add an attachment
            ' TODO: Replace with a valid attachment path.
            Dim sSource As String = "C:TempHello.txt"
            ' TODO: Replace with attachment name
            Dim sDisplayName As String = "Hello.txt"

            Dim sBodyLen As String = oMsg.Body.Length
            Dim oAttachs As Outlook.Attachments = oMsg.Attachments
            Dim oAttach As Outlook.Attachment
            oAttach = oAttachs.Add(sSource, , sBodyLen + 1, sDisplayName)

            ' Send
            oMsg.Send()
            'oMsg.Display()

            ' Clean up
            oApp = Nothing
            oMsg = Nothing
            oAttach = Nothing
            oAttachs = Nothing

        Catch ex As Exception
        Finally
            SecurityManger.DisableOOMWarnings = False
        End Try

I am still getting the mail warning.
Posted 13 Jan, 2010 11:07:18 Top
Andrei Smolin


Add-in Express team


Posts: 15212
Joined: 2006-05-11
Hi Chris,

1. Create Outlook.Application
2. Create SecurityManger
3. SecurityManger.ConnectoTo
4. SecurityManger.DisableOOMWarnings = True
5. Try {your stuff} Catch {your stuff} Finally {SecurityManger.DisableOOMWarnings = False}

Also, consider moving clean-up things to the Finally block.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Jan, 2010 13:09:44 Top
Chris Dodson




Posts: 2
Joined: 2010-01-13
Thanks, it is working now. I think with the exception of maybe the connectTo my code was really working. It turns out there was something corrupted on my user profile on my PC here. When we cleared it out and started a fresh profile everything worked great.
Posted 14 Jan, 2010 07:45:47 Top
Andrei Smolin


Add-in Express team


Posts: 15212
Joined: 2006-05-11
Always glad to hear a portion of good news.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 14 Jan, 2010 07:52:44 Top