reading POP3 mails using c++
-
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
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
-
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
See this CP article on Mime utils. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com
-
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
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
-
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
-
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
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
-
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
-
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
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
-
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
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
-
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
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
-
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
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