Hi,
It appears I'm not able to access the messages in my inbox from vb.net.
When I run this:
Here's what I have so far:
I'm running .NET framework v 4.5 with the 4.5 version of imapx.dll v 2.0.0.15
Any suggestions on what I could be doing wrong?
Thanks!
It appears I'm not able to access the messages in my inbox from vb.net.
When I run this:
Dim msgCount As Integer
msgCount = client.Folders.Inbox.Messages.Count
The project seems to process for a short time as if it's counting messages, but msgCount is returned as 0 every time I run it.Here's what I have so far:
Public Function getMsg()
Dim client As New ImapClient("imap.gmail.com", True)
Dim msg As ImapX.Message
Dim msgCount As Integer
If imapSvr.Connect() Then
If imapSvr.Login(username, password) Then
msgcount = client.Folders.Inbox.Messages.Count
End If
End If
End Function
Connecting and logging in seem to function correctly. The messages are the only thing I'm having issue with.I'm running .NET framework v 4.5 with the 4.5 version of imapx.dll v 2.0.0.15
Any suggestions on what I could be doing wrong?
Thanks!