I try to get the list of my POPRetriever under a Mailbox but I always get nothing.
This is my code :
Code: Select all
public static void ListPop(Postoffice postOffice, Mailbox mailbox)
{
var popRetriever = new POPRetriever() { LocalPostoffice = postOffice.Account, LocalMailbox = mailbox.MailboxName };
var returnValue = popRetriever.FindFirstPOPRetreiver();
while (returnValue == 1)
{
Debug.WriteLine(popRetriever.MailServer);
returnValue = popRetriever.FindNextPOPRetreiver();
}
}
Miguel