SECURITY MANAGER 2010 FOR MICROSOFT OUTLOOK + Interface not supported

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

SECURITY MANAGER 2010 FOR MICROSOFT OUTLOOK + Interface not supported
 
Luc Pelletier




Posts: 2
Joined: 2011-04-08
Hi,

I have a problem on computer to send email via Outlook 2010 (32 bits) and Windows 7 (32 bits).
When I try to create your interface I receive this message "Interface not supported". Even with your sample code I receive it.

This is my configuration

Windows 7 32 bits
Office 7 32 bits
Kaspersky anti-virus

I'm programming with Delphi 6

I try to reinstall Outlook 2010 but this not resolve my problem

On other computer with same configuration, I can send email
Windows 7 64 bits
Office 7 32 bits


CODE DELPHI

try
lOutlook := TOutlookApplication.Create(nil);
lOutlookSecurity := TOlSecurityManager.Create(nil);
lOutlookSecurity.ConnectTo(lOutlook.Application); <-- This line cause an error
lOutlookSecurity.DisableOOMWarnings := True;
lOutlookSecurity.DisableCDOWarnings := True;
lOutlookSecurity.DisableSMAPIWarnings := True;

......

if aViewMessage then
lMail.Display(True)
else
lMail.Send;

lOutlookSecurity.DisableOOMWarnings := False;
lOutlookSecurity.DisableCDOWarnings := False;
lOutlookSecurity.DisableSMAPIWarnings := False;

finally
lOutlookSecurity.Free;
lOutlook.Free;
end;


Thank you
Posted 08 Apr, 2011 09:11:24 Top
Renat Tlebaldziyeu


Add-in Express team


Posts: 132
Joined: 2010-02-15
Hello Luc,

Did you try to debug? Does lOutlook.Application have a correct value?
Posted 08 Apr, 2011 10:07:38 Top
Luc Pelletier




Posts: 2
Joined: 2011-04-08
I can't debug it because I receive this error with one of my customer.

I'll valid before if lOutlook.Application is not NIL and I'll send you the result of this variables
lOutlook.Application.Name
lOutlook.Application.Version
lOutlook.Application.ProductCode
Posted 13 Apr, 2011 10:35:37 Top
Renat Tlebaldziyeu


Add-in Express team


Posts: 132
Joined: 2010-02-15
Hello Luc,

The issue may occur because of your customer has an incorrect dll version.
The older versions don't support the new IOutlookSecurityManager2 interface. Please try to copy the latest secman.dll file (you can find it in the Outlook Security Manager Redistributables folder) to the customer PC and register it manually from the following command line:

regsvr32 <path to secman.dll>

Did it help?
Posted 13 Apr, 2011 11:48:18 Top