lesnikowski
New member
- Joined
- Jul 17, 2006
- Messages
- 2
- Programming Experience
- 10+
Try using Mail.dll .NET mail component, for downloading messages.
Mail.dll includes POP3, IMAP and SMTP clients and powerful MIME parser.
You can download it at Mail.dll - mail component for .NET
Mail.dll includes POP3, IMAP and SMTP clients and powerful MIME parser.
VB.NET:
Dim imap As New Imap
imap.Connect("imap.server.com")
imap.User = "user"
imap.Password = "password"
imap.Login()
imap.SelectInbox()
Dim uidList As List(Of Long) = imap.SearchFlag(Flag.Unseen)
For Each uid As Long In uidList
Dim mail As ISimpleMailMessage = New SimpleMailMessageBuilder() _
.CreateFromEml(imap.GetMessageByUID(uid))
Console.WriteLine(mail.Subject)
Next
imap.Close(True)
You can download it at Mail.dll - mail component for .NET
Last edited: