I have a customer relations system which I have built, what I would like to know is what is the best way to save emails to MySQL so I don’t have to create each staff member an actual email address, as we have staff members accessing the CRM and not Outlook.
Is there any documentation on this?
An email in itself already content all the necessary data if you don’t forget to record the headers.
You must absolutely keep the full headers, because it will be useful if there is any troubles with the customers. Only the headers are proof.
Of course you will have to add columns in mysql about your personalised data: customer_id, user_id, and whatever your CRM needs.
Other than that, even if they are in the email you can add some mysql columns that might be useful for you CRM: date, subject, user_to, address_from… it all depends on your use of them.
I think I would keep in BLOB the full content of the email since there can be files attached. It could end bigger than 10MB…