Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python 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 |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.