Page 1 of 1

Retreiving mail from server for CRM

Posted: Sat Sep 04, 2010 2:01 pm
by GeXus
Hello,

I'm working on adding a feature to an in-house build CRM, that will allow reps to handle email responses via the CRM. Here's the basics:

1) Customers send emails to support@domain.com
2) This will fetch the emails from the server, add them to our CRM database, delete them from the server.
3) When a rep is looking up a customer, it'll also show any emails that have been sent to support@domain.com from that customers email address. They'll also be able to simply view all of the emails and reply accordingly.

The main question I have is, receiving the emails and getting the email content is really slow. The first step is getting a list of all emails, getting their uid, then fetching the actual email content.

Is this the best way to achieve what our goal is? or would anyone recommend doing something different? I've never worked with receiving email before, so just not sure if this is "how it's done".

Thank you!

Re: Retreiving mail from server for CRM

Posted: Sun Sep 05, 2010 2:51 pm
by josh
You can use postfix to pipe the emails directly to your script, so now your script *is* the mail server. Your script decides whether to spam it, inbox it, etc.. Your script can choose to store on the file system, a database, etc.. in real time as the emails are received.