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. C / C++ / MFC
  4. reading POP3 mails using c++

reading POP3 mails using c++

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadmintoolshelptutorial
19 Posts 3 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.
  • O omkamal

    See I told I will get back to you. I checked this link (codeguru link that you sent me finally). Looked like it had a whole lot of samples and classes to explore. But just go thru the comments of different people. Everyone ask the author about how to read an attachment. Funny thing is either the author does not reply to them or one even said the following Hi, please do not contact me regarding the handling of attachments. I have no idea, and I never extended these classes to handle attachments. Sorry, but this is something you have to find out yourself. Thanks, Michael Submitted By: Michael Krebs (2001/06/13) Go up a level Isnt this weird that no one knows how to read a MIME type multipart attachment from a POP3 mail server? :eek: [Now, ravi do you understand how X| I am.] Oh please help me again... omkamal

    R Offline
    R Offline
    Ravi Bhavnani
    wrote on last edited by
    #10

    Darn, I know I've seen source code for extracting attachments from a raw mail message... I will keep looking. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

    O 1 Reply Last reply
    0
    • O omkamal

      See I told I will get back to you. I checked this link (codeguru link that you sent me finally). Looked like it had a whole lot of samples and classes to explore. But just go thru the comments of different people. Everyone ask the author about how to read an attachment. Funny thing is either the author does not reply to them or one even said the following Hi, please do not contact me regarding the handling of attachments. I have no idea, and I never extended these classes to handle attachments. Sorry, but this is something you have to find out yourself. Thanks, Michael Submitted By: Michael Krebs (2001/06/13) Go up a level Isnt this weird that no one knows how to read a MIME type multipart attachment from a POP3 mail server? :eek: [Now, ravi do you understand how X| I am.] Oh please help me again... omkamal

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #11

      See this CP article on Mime utils. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

      1 Reply Last reply
      0
      • R Ravi Bhavnani

        Darn, I know I've seen source code for extracting attachments from a raw mail message... I will keep looking. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

        O Offline
        O Offline
        omkamal
        wrote on last edited by
        #12

        I think I found one from the codeguru link itself. I have gone thru the source code. Boy! its very heavy duty. The guy actually wrote whatever text that comes outta pop3 server Retr command to a file first. He then parses thru the file, literally checking for strings like "To:", "From:", "Content-Disposition: attachment - <>" and then extracts everything to different variables. Thats too much work though. Why in the world are there no C++ APIs or classes to do all these? May be I should start writing them if no one really did before. The sample that I am talking about in the codeguru link is this... POP3 Client With Attachment - Alexander Volkov (2002/02/15) Here is a simple COM server that is able to receive a mail messages and extract attached files. omkamal

        R 1 Reply Last reply
        0
        • N Neville Franks

          Have a look at Chilkat Mail - http://www.chilkatsoft.com/ChilkatMail.asp It should do what you want. Neville Franks, Author of ED for Windows. www.getsoft.com

          O Offline
          O Offline
          omkamal
          wrote on last edited by
          #13

          Thanks Neville, I am looking thru the code. But before I go any further have you used it. Is there a simple client written consuming this COM, that i can use? [Just to save my time] omkamal

          N 1 Reply Last reply
          0
          • O omkamal

            I think I found one from the codeguru link itself. I have gone thru the source code. Boy! its very heavy duty. The guy actually wrote whatever text that comes outta pop3 server Retr command to a file first. He then parses thru the file, literally checking for strings like "To:", "From:", "Content-Disposition: attachment - <>" and then extracts everything to different variables. Thats too much work though. Why in the world are there no C++ APIs or classes to do all these? May be I should start writing them if no one really did before. The sample that I am talking about in the codeguru link is this... POP3 Client With Attachment - Alexander Volkov (2002/02/15) Here is a simple COM server that is able to receive a mail messages and extract attached files. omkamal

            R Offline
            R Offline
            Ravi Bhavnani
            wrote on last edited by
            #14

            There are commercial libs available to do this. omkamal wrote: May be I should start writing them if no one really did before. That would be great! Please consider posting your article at CP. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

            O 1 Reply Last reply
            0
            • R Ravi Bhavnani

              There are commercial libs available to do this. omkamal wrote: May be I should start writing them if no one really did before. That would be great! Please consider posting your article at CP. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

              O Offline
              O Offline
              omkamal
              wrote on last edited by
              #15

              I never thought my Friday would be driven this nuts. I better go out for some movie or my head would be charbroiled. Almost burning.........:mad: omkamal

              R 1 Reply Last reply
              0
              • O omkamal

                I never thought my Friday would be driven this nuts. I better go out for some movie or my head would be charbroiled. Almost burning.........:mad: omkamal

                R Offline
                R Offline
                Ravi Bhavnani
                wrote on last edited by
                #16

                What!? You'd pass up a night of hacking the COmkamalEmailAttachment class for mindless entertainment? :) /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

                O 1 Reply Last reply
                0
                • R Ravi Bhavnani

                  What!? You'd pass up a night of hacking the COmkamalEmailAttachment class for mindless entertainment? :) /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

                  O Offline
                  O Offline
                  omkamal
                  wrote on last edited by
                  #17

                  You never know ravi, how many .dsw and .dsp I have written so far starting from MAPI and until POP3 and MIME protocols with Winsock and a whole lot of fun. I even have a feeling to quit my job. My boss is my only cheerleader now. (and ofcourse CP). omkamal

                  1 Reply Last reply
                  0
                  • O omkamal

                    Thanks Neville, I am looking thru the code. But before I go any further have you used it. Is there a simple client written consuming this COM, that i can use? [Just to save my time] omkamal

                    N Offline
                    N Offline
                    Neville Franks
                    wrote on last edited by
                    #18

                    omkamal wrote: Is there a simple client written consuming this COM, that i can use? [Just to save my time] Have a look at the sample code which Matt includes. I haven't actually used it apart from a quick play with the samples. The mailing list is active and Matt is quick to respond to problems. Quite amazing seeing that it is free. Neville Franks, Author of ED for Windows. www.getsoft.com

                    O 1 Reply Last reply
                    0
                    • N Neville Franks

                      omkamal wrote: Is there a simple client written consuming this COM, that i can use? [Just to save my time] Have a look at the sample code which Matt includes. I haven't actually used it apart from a quick play with the samples. The mailing list is active and Matt is quick to respond to problems. Quite amazing seeing that it is free. Neville Franks, Author of ED for Windows. www.getsoft.com

                      O Offline
                      O Offline
                      omkamal
                      wrote on last edited by
                      #19

                      Neville, Thanks for letting me know about this software. Neville Franks wrote: The mailing list is active and Matt is quick to respond to problems. I am very impressed, as he replied me back within a moment for my questions. Neville Franks wrote: Quite amazing seeing that it is free This is exactly true. omkamal

                      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