Read inbox from Outlook

Read inbox from Outlook

Postby NK » Thu Jul 13, 2006 2: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

Code: Select all  Expand view
/
   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

User avatar
NK
 
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany

Re: Read inbox from Outlook

Postby Enrico Maria Giordano » Thu Jul 13, 2006 4:31 pm

Have you checked the file VBAOUTL*.CHM?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Read inbox from Outlook

Postby NK » Sun Jul 16, 2006 9:30 pm

EnricoMaria wrote:Have you checked the file VBAOUTL*.CHM?

EMG


Yes, but nothing found :oops:
User avatar
NK
 
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany

Re: Read inbox from Outlook

Postby Enrico Maria Giordano » Sun Jul 16, 2006 9:37 pm

NK wrote:
EnricoMaria wrote:Have you checked the file VBAOUTL*.CHM?

EMG


Yes, but nothing found :oops:


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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 62 guests

cron