Retreiving mail from server for CRM

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Retreiving mail from server for CRM

Post 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!
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Retreiving mail from server for CRM

Post 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.
Post Reply