Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jul : Indy 10/BD7 Easiest way to save EMail?

www.cryer.info
Managed Newsgroup Archive

Indy 10/BD7 Easiest way to save EMail?

Subject:Indy 10/BD7 Easiest way to save EMail?
Posted by:"Byron Short" (bsho..@afsinc.com)
Date:Mon, 30 Jul 2007 16:25:14

I am using Indy 10.1.6 and Delphi 7.  I can retrieve
messages just fine with IdPop3, and send them out with
IdSMTP as well.

I want to be able to save an incoming e-mail, in it's
entirely including Attachments, on my database.  I am
thinking it would be easiest to do this by reading it in in
the most basic form possible, saving it on the database in
whatever form that is, and then decoding it into IdMessage
when I read it back from the database.

Am I on the right track?  Is there a demo somewhere, or some
psuedo-code that someone can offer.  I have looked casually
at IdPop3.RetrieveRaw, but there's not a lot of data on it
in the help system, so I'm not sure if it's the right path
at all.  Whatever method I use to Retrieve the e-mail, I
need to be able to duplicate that in my database, and then
retrieve it from the database back into IdMessage.

THANKS IN ADVANCE for any help!

--Byron

Replies:

www.cryer.info
Managed Newsgroup Archive