In MailForWindowsStore.dll all methods have async counterparts. Please use:
await pop3.Connect("imap.example.com");
or
await pop3.ConnectSSL("imap.example.com");
before invoking UseBestLoginAsync. UseBestLoginAsync exists in MailForWindowsStore.dll. There is only async version of this method:
await imap.UseBestLoginAsync("user@example.com", "password");
Here's a full POP3 sample for Windows Store Apps:
using(Pop3 pop3 = new Pop3())
{
await pop3.Connect("pop3.server.com"); // or ConnectSSL
await pop3.UseBestLoginAsync("user", "password");
List<string> uids = await pop3.GetAllAsync();
foreach (string uid in uids)
{
IMail email = new MailBuilder()
.CreateFromEml(await pop3.GetMessageByUIDAsync(uid));
string subject = email.Subject;
var attachments = email.Attachments;
}
await pop3.CloseAsync();
}