Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Receive POP3 e-mails as .eml file

Receive POP3 e-mails as .eml file

Scheduled Pinned Locked Moved Visual Basic
tutorialquestioncsharpdelphi
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dan Suthar
    wrote on last edited by
    #1

    Hi everyone, My question is how to download emails from a pop server and save them as *.eml or *.mht files to localdisk as oultlook does ? Now what I know is that an .eml file can have images,attachments and all the e-mail formatting in it. So if I use a simple pop3 client to download message it will download the text part of the e-mail not full formatting - that's what I'm searching for! I found this link : http://www.example-code.com/delphi/download-pop3-email-to-eml.asp but the library is not free or open source , can you find something like this , my dear friends ? I also found another thing :http://www.developerfusion.co.uk/show/2453/ But It uses the winsock control which I can't found in VB.NET. Any one please help.. Thanks, Dan

    D 1 Reply Last reply
    0
    • D Dan Suthar

      Hi everyone, My question is how to download emails from a pop server and save them as *.eml or *.mht files to localdisk as oultlook does ? Now what I know is that an .eml file can have images,attachments and all the e-mail formatting in it. So if I use a simple pop3 client to download message it will download the text part of the e-mail not full formatting - that's what I'm searching for! I found this link : http://www.example-code.com/delphi/download-pop3-email-to-eml.asp but the library is not free or open source , can you find something like this , my dear friends ? I also found another thing :http://www.developerfusion.co.uk/show/2453/ But It uses the winsock control which I can't found in VB.NET. Any one please help.. Thanks, Dan

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The file format has absolutely nothing to with a POP3 client. There is no file format specification for saving messages. The .eml format is specified by Microsoft and Outlook, not the POP3 protocol. It's also known as the message/rfc822 MIME type. You can find out everything about the format here[^], or just Google for "message/rfc822 format".

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      D 1 Reply Last reply
      0
      • D Dave Kreskowiak

        The file format has absolutely nothing to with a POP3 client. There is no file format specification for saving messages. The .eml format is specified by Microsoft and Outlook, not the POP3 protocol. It's also known as the message/rfc822 MIME type. You can find out everything about the format here[^], or just Google for "message/rfc822 format".

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        D Offline
        D Offline
        Dan Suthar
        wrote on last edited by
        #3

        Hi Dave Kreskowiak, Ok , Now I understood the real matter . Thanks for help. :cool: But Is there any way that I can use the winsock example that I showed you in the first post ? I tried but on every line I'm getting an error ! :doh: If you have any idea ... ?? :-> Thanks, dan

        D 1 Reply Last reply
        0
        • D Dan Suthar

          Hi Dave Kreskowiak, Ok , Now I understood the real matter . Thanks for help. :cool: But Is there any way that I can use the winsock example that I showed you in the first post ? I tried but on every line I'm getting an error ! :doh: If you have any idea ... ?? :-> Thanks, dan

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          The code you found was written for VB6, not VB.NET. It's possible to convert it. You'd have to add a Reference to the old Winsock control, I think it's in the list under the COM tab, Microsoft Winsock Control.

          Dan`M wrote:

          I tried but on every line I'm getting an error !

          I'd scrap the code and rewrite it using .NET Framework classes, but describing how those work is way beyond what you can fit in a couple of forum posts. You're getting most of these error messages because you don't have a reference to the old Winsock control.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          D 1 Reply Last reply
          0
          • D Dave Kreskowiak

            The code you found was written for VB6, not VB.NET. It's possible to convert it. You'd have to add a Reference to the old Winsock control, I think it's in the list under the COM tab, Microsoft Winsock Control.

            Dan`M wrote:

            I tried but on every line I'm getting an error !

            I'd scrap the code and rewrite it using .NET Framework classes, but describing how those work is way beyond what you can fit in a couple of forum posts. You're getting most of these error messages because you don't have a reference to the old Winsock control.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            D Offline
            D Offline
            Dan Suthar
            wrote on last edited by
            #5

            Hi, I downloaded old winsock.dll from internet add added the reference. But i have still some errors.. Can you convert & post the code for VB.NET please ?:-> Thanks, Dan

            D 1 Reply Last reply
            0
            • D Dan Suthar

              Hi, I downloaded old winsock.dll from internet add added the reference. But i have still some errors.. Can you convert & post the code for VB.NET please ?:-> Thanks, Dan

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Dan`M wrote:

              I downloaded old winsock.dll from internet add added the reference.

              Very big mistake. I already told you how to do it, and that didn't involve downloading a .DLL. The one you downloaded is also the wrong file!

              Dan`M wrote:

              Can you convert & post the code for VB.NET please ?

              I can't because my time is short. I do this for about 5 minutes, whenever I get a chance.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups