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 |
|
Renat Tlebaldziyeu
Guest
|
Hello Luc,
Did you try to debug? Does lOutlook.Application have a correct value? |
|
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 |
|
Renat Tlebaldziyeu
Guest
|
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? |
|