Link to home
Start Free TrialLog in
Avatar of Hidayat
Hidayat

asked on

How to Retrieve Netscape Inbox,Sent Items and Contacts etc,

Using CDONTS or any other object can you retrieve
Netscape inbox Items or Sent Items or Contact ... etc.in Visual Basic.

Please send the code or advise me to how to go about of this query.


Thanks

Hidayat
Avatar of TheMek
TheMek

The following code is for Outlook, but I guess something similar should be possible with Outlook Express. It needs a reference to the Microsoft Outlook 9.0 Object Library.
It puts all contacts in a combobox called cboContactList. I got this from the MSDN libraries.

     Dim oApp As Outlook.Application
      Dim oNspc As NameSpace
      Dim oItm As ContactItem
      Dim x As Integer
      If Not DisplayStatusBar Then
      DisplayStatusBar = True
      End If
      StatusBar = "Please Wait..."
      x = 0
      Set oApp = CreateObject("Outlook.Application")
      Set oNspc = oApp.GetNamespace("MAPI")
      For Each oItm In oNspc.GetDefaultFolder _
      (olFolderContacts).Items
      With Me.cboContactList
      .AddItem (oItm.FullName)
      .Column(1, x) = oItm.BusinessAddress
      .Column(2, x) = oItm.BusinessAddressCity
      .Column(3, x) = oItm.BusinessAddressState
      .Column(4, x) = oItm.BusinessAddressPostalCode
      .Column(5, x) = oItm.Email1Address
      End With
      x = x + 1
      Next oItm
      StatusBar = ""
      Set oItm = Nothing
      Set oNspc = Nothing
      Set oApp = Nothing

Hope this is of any use.
Cheers,
  Erwin
Avatar of DanRollins
Hi Hidayat,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.
    *** response not on point (Q is about Netscape)

Hidayat, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial