SocketTools .NET Edition

InternetMail.SubscribeMailbox Method ()

Subscribes the user to the current mailbox.

[Visual Basic]
Overloads Public Function SubscribeMailbox() As Boolean
[C#]
public bool SubscribeMailbox();

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

The SubscribeMailbox method adds the current mailbox to the current user's list of active or subscribed mailboxes. The user will remain subscribed to the mailbox across multiple sessions, until the UnsubscribeMailbox method is called to remove the mailbox from the subscription list.

Note that if a user subscribes to a mailbox and that mailbox is later renamed or deleted, the mailbox will not be automatically removed from the user's subscription list. To determine if the current mailbox is in the user's subscription list, check the Subscribed property.

The current mailbox is specified by the value of the MailboxName property.

See Also