Logo
English Russian German French Spanish Italian
contact usprivacy
   Support Forums
chart
• Adjust flexgrid cell
• Animation
• Centering form text
• Coffee machine
• Creating fileshares
• Creating shortcuts
• Custom buttons
• Directory browser
• Disable mouse events
• File search by ext
• File transfer
• File watcher
• Formatting flexgrid
• Get Content Type
• Get HTML source
• Get modem port
• HTTP proxy
• ipconfig
• Large file split/merge
• MAPI
• MCI Sound Player
• Menu with images
• MP3 normalizer
• Net Send
• Netstat 2000
• No duplicate entries
• Outlook Address Book
• Set font color
• Shapes
• SOAP test
• Text-to-image
• Text file viewer
• Text find/replace
• UPS component
• View NT groups
• Word template
• Writing DNS control
    • Using DNS control
• Writing SMTP control
    • Sending email
    • Mailing list
• Writing WhoIs control
    • Using WhoIs control
• View HTML source
VB projects - MAPI (reading mailbox)

Description: reading messages in mailbox, using MS MAPI controls
Minimum requirements: VB6
Download: source code
Screenshot:
VB projects - MAPI (reading mailbox)
Project: EXE
Controls: TextBox txt (MultiLine = -1 'True, ScrollBars = 3 'Both), ListBox lst, MAPIMessages MAPIMessages1, MAPISession MAPISession1
Additional references: none
Code:
Option Explicit

Private Sub Form_Load() Dim i As Integer With MAPISession1 .UserName = InputBox("Enter your login", "Login") .Password = InputBox("Enter your password", "Password") .SignOn End With With MAPIMessages1 .SessionID = MAPISession1.SessionID .Fetch For i = 0 To .MsgCount - 1 .MsgIndex = i lst.AddItem .MsgSubject lst.ItemData(lst.NewIndex) = i Next End With End Sub
Private Sub lst_Click() With MAPIMessages1 .MsgIndex = lst.ItemData(lst.ListIndex) txt = .MsgNoteText End With End Sub

Copyright © 1996-2008 OstroSoft. All rights reserved. info@ostrosoft.com