Ideas for storing e-mail messages in a Delphi client server application

Posted by user193655 on Stack Overflow See other posts from Stack Overflow or by user193655
Published on 2011-02-05T13:40:49Z Indexed on 2011/02/05 15:25 UTC
Read the original article Hit count: 237

Filed under:
|
|
|

There are many suggestions here and there for storing e-mail messages. Somehow what I am doing is writing an Outlook addin to send emails from inbox/sent folders directly to my application.

So only what is really interesting is saved. And I decide where to save it.

Imagine this case:

I recieve an email from a customer. It's up to me to decide whether I should save it on the customer or on the order 24 that that customer did. So this is why I am doing the add in, and not some automatic storing of emails = noise after some time.

This said, how to store the emails? For the emails that I recieve or send through Outlook the idea could be save the whole file in a blob field (so the eml file), may be I can save also other info (like the subject) in another text field. But the problem comes when I write an email from my application.

In this case I am not generating an eml file, I send through MAPI data to Outlook to compose an email that I will send with Outlook (so in this case I cannot save the eml), or I directly send it with Indy. Also in this case I don't have the eml file...

One idea could be that the all the emails that I auto compose have a special flag that the Add in recognises and therefore when I send the mail it is stored back to the DB. So in this case I can save the eml also of the mails I sent from my application.

May you comment?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about email