CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2003
    Posts
    1

    how to get unread emails

    I want to retrive only unread information from mail server with VB6 and winsock component, how can I do this?
    Thanks in advance

  2. #2
    Join Date
    Jan 2003
    Location
    7,107 Islands
    Posts
    2,487
    Hmmnn.. There's no such unread information or email message in the mail server's maildrop.. This could only happen in an email client like MS Outlook Express for beautification.. What you could do in the message in the maildrop is to copy/download or delete..

    The winsock is just an interface so you need to learn a protocol in order to access the maildrop and communicate with the server. Probably, try to search the web for the POP3 or IMAP protocol. You may check also the FAQ regarding sending email with VB, this may help though..
    Busy

  3. #3
    Join Date
    Jan 2002
    Location
    Quebec/Canada
    Posts
    124
    If I remember correctly, pop3 have a HEAD command wich return only the header of an email, and if I understand correctly, email clients like outlook store thoses info somewhere in order to know which message have already been downloaded. I suggest you to read some RFC about pop3 (rfc1939) or get a good pop3 ocx.

  4. #4
    Join Date
    Jan 2003
    Location
    7,107 Islands
    Posts
    2,487
    The MS Outlook Express has its own database to store the message, hence uses the message-id for identification.. And it does not retain the message from the server but deletes it once downloaded..
    Busy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured