Selected Property


Indicates whether IMAP4 object has already selected a mailbox on the IMAP4 server.

Many IMAP4 operations require selected mailbox in order to be successfully run.

Use SelectMailbox or ExamineMailbox method to select a mailbox on the IMAP4 server.


Value Type: Boolean
Parameters: None 
Remarks: This property is read-only

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.IMAP4")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.IMAP4")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
If Mailer.Connect("mailserver.com", 143, "MyName", "MyPassword") Then
  Mailer.SelectMailbox("Inbox")
  If Mailer.Selected Then
    MsgBox "Inbox selected"
  End If
  Mailer.Disconnect
End If

See Also:

ExamineMailbox Method
SelectMailbox Method


Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.