Hunny Software Library Reference

Imap4Client.Subscribe Method 

Sends a SUBSCRIBE command.

[Visual Basic]
Public Sub Subscribe( _
   ByVal mailboxName As String _
)
[C#]
public void Subscribe(
   string mailboxName
);

Parameters

mailboxName
The name of the mailbox to subscribe to.

Remarks

A SUBSCRIBE command requests the server to add a mailbox to the list of subscribed mailboxes for the current user. Subscribed mailboxes can be listed with the LSUB command.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | Unsubscribe method | Lsub method | SUBSCRIBE command in the IMAP4 specification