Kbase P167627: Unable to send email from OpenEdge when Outlook is not running
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/1/2010 |
|
Status: Unverified
SYMPTOM(s):
Unable to send email from OpenEdge when Outlook is not running
Component property / method Send could not resolve message recepient 0x80020009 SendMailItem. (5880)
FACT(s) (Environment):
Application using Microsoft Outlook COM object
OpenEdge 10.x
Progress 9.x
Windows
CAUSE:
If Outlook is not running then the COM object needs to log onto Outlook. This will start Outlook so messages can be sent.
FIX:
Use code similar to the following to log an OpenEdge application onto Outlook:
DEFINE VARIABLE olApp AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE olNS AS COM-HANDLE NO-UNDO.
CREATE "Outlook.Application" olApp.
olNS = olApp:GetNamespace( "MAPI" ).
olNS:Logon().