FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Read inbox from Outlook
Posts: 97
Joined: Sun Nov 20, 2005 04:32 PM
Read inbox from Outlook
Posted: Thu Jul 13, 2006 02:31 PM
Hi Everybody,

Does someone have experiences of you to read the inbox in Outlook via OLE?

Yet some variable names are missing for fromeMail, toemail etc..

Greeting, Norbert

/
   TRY
      oOL := TOleAuto():New( "Outlook.Application" )
      lOutlookOK := .T.
   CATCH
      lOutlookOK := .F.
   END
   IF ! lOutlookOK
      RETURN ( 0 )
   ENDIF

   oNameSpace   = oOL:Get( "GetNameSpace", "MAPI" )
   oContacts    = oNameSpace:Get( "GetDefaultFolder", "6" )  // 6 = Inbox-Folder
   
   FOR nContador = 1 TO oContacts:ITEMS:Count()
         oNewContact  = oContacts:ITEMS( nContador )
         cSenderName	:= oNewContact:get( "SenderName" )
         cSubject		:= oNewContact:get( "Subject" )

  >>>> ??????

   NEXT nContador
RETURN NIL
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Read inbox from Outlook
Posted: Thu Jul 13, 2006 04:31 PM

Have you checked the file VBAOUTL*.CHM?

EMG

Posts: 97
Joined: Sun Nov 20, 2005 04:32 PM
Re: Read inbox from Outlook
Posted: Sun Jul 16, 2006 09:30 PM
EnricoMaria wrote:Have you checked the file VBAOUTL*.CHM?

EMG


Yes, but nothing found :-)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Read inbox from Outlook
Posted: Sun Jul 16, 2006 09:37 PM
NK wrote:
EnricoMaria wrote:Have you checked the file VBAOUTL*.CHM?

EMG


Yes, but nothing found :-)


Have a look at MailItem object's properties (as an example, I can see the To property).

EMG

Continue the discussion