How to handle incoming mails?
Domanda
We are developing a Client Support System. So we need to handle every mail once we get it. How to configure Exim? When the mail is received. It has to be handle (in php). For example it has to be inserted in DB.
Soluzione
You need to configure exim to pipe the mail to a php script.
Here is a tutorial on how to achieve this: http://www.activecampaign.com/support/tt/kb/article/help-desk/version-25x-26x/setting-up-supporttrio/setting-up-your-server-to-forward-email-to-the-pipe-script
The php script you "pipe" the mail to will receive the emails content via stdin
, which enables you to insert it into the db.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow