Outlook Security Manager and Outlook 2016 not working

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

Outlook Security Manager and Outlook 2016 not working
 
Mirko Boeer




Posts: 3
Joined: 2014-03-17
Delphi XE7, secman.dll 5.0, Windows 7 x64 and new installed Office/Outlook 2016 32bit (Outlook Version 16.0.6366.2036).

While sending a simple plain text email I must confirm accessing Outlook address book and sending an email when Antivirus Software is deactivated. On Windows 10 x64 with old Outlook 2010 x32 without antivirus Software, also Windows Defender disabled(!), it works without warnings. I have 2 clients with the same problem who hasn't an antivirus software installed.


Here is a simple sample source code (antivirus Software and Windows Defender on Win10 must be disabled):

procedure TForm5.Button1Click(Sender: TObject);
Var
OLSecMan : TOlSecurityManager;
Outlook : Outlook_TLB._Application;
FOutlookNameSpace: Outlook_TLB.NameSpace;
myFolder: MAPIFolder;
myItem: _MailItem;

begin
CoInitialize(nil);
try
OLSecMan := TOlSecurityManager.Create(nil);

Outlook := CreateComObject(CLASS_OutlookApplication) As Outlook_TLB._Application;
FOutlookNameSpace := Outlook.GetNamespace('MAPI');
FOutlookNameSpace.Logon('', '', False, False);

OLSecMan.ConnectTo(Outlook);
OLSecMan.DisableSMAPIWarnings := True;
OLSecMan.DisableOOMWarnings := True;

myFolder := FOutlookNameSpace.GetDefaultFolder(olFolderOutbox);
myItem := myFolder.Items.Add(olMailItem) As _MailItem;

myItem.Recipients.Add('info@EMAILADDRESS.DE');
myItem.Subject := 'Test';
myItem.Body := 'I''m a test.';
myItem.Send;


OLSecMan.DisableSMAPIWarnings := False;
OLSecMan.DisableOOMWarnings := False;
finally
FreeAndNil(OLSecMan);
CoUninitialize();
end;
end;
Posted 12 Jan, 2016 11:01:53 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Mirko,

I assume you develop a standalone application, not an Outlook add-in. Is this correct? Is your application 32bit or 64bit? How you deploy secman.dll? Do you register it via regsvr32 or just put to the folder containing your application? How you deploy secman64.dll?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Jan, 2016 03:25:34 Top
Mirko Boeer




Posts: 3
Joined: 2014-03-17
Yes 32bit standalone application, no Outlook Add-in, secman.dll is in same folder as exe file, registered with regsvr32. secman64.dll is not registered with regsvr32 because is it a 32bit Outlook. I have registered secman64.dll today but it doesn't help.
Posted 13 Jan, 2016 05:28:14 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Mirko,

We've reproduced the issue. We look into this. There's a small chance we will have some news today; most probably we will have a solution/fix next week. I'll let you know.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Jan, 2016 03:22:35 Top