Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
List IMAP Mailboxes
VB.NET source code example to list each mailbox on an IMAP server (in a specific account). Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Create an object, connect to the IMAP server, and login
Dim imap As New Chilkat.Imap()
imap.UnlockComponent("UnlockCode")
imap.Connect("www.mymailserver.com")
imap.Login("login", "password")
' Get the names of all the mailboxes.
Dim mboxes As Chilkat.Mailboxes
mboxes = imap.ListMailboxes("", "*")
Dim i As Long
For i = 0 To mboxes.Count - 1
ListBox1.Items.Add(mboxes.GetName(i))
Next
' Disconnect from the IMAP server.
imap.Disconnect()
End Sub
Important: The download for this
example does not contain the ChilkatDotNet.dll which |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.