Hi there guys im having problemas getting the count of the messages of the infox heres is my code:
In that line but the log in and all that is OK
I hope you guys can help me
Thanks
ImapClient client = new ImapClient("imap.gmail.com", 993, true, true);
bool connect = client.Connect();
client.Login("12345@gmail.com", "passwordhere");
client.Behavior.AutoPopulateFolderMessages = true;
Button1.Text = client.Folders.Inbox.Messages.Count().ToString();
I get the error: Object reference not set to an instance of an object. In that line but the log in and all that is OK
I hope you guys can help me
Thanks