Page 1 of 1

Receiving mail using php

Posted: Sat Jan 08, 2005 1:44 am
by AGISB
I am looking for a script that is capabale of receiving mail from sendmail and store them into my database system. Is this possible? The script would have to listen and therefore run continuosly.

The reason for this would be that I want to combine my internal database driven mail system with outside emails so that the admin can see all in one admin tool.

Posted: Sat Jan 08, 2005 7:46 am
by markl999
You just need to set up sendmail to forward the relevenat emails to a php script which can then do whatever you want with the contents of the email.
http://www.evolt.org/article/Incoming_M ... /18/27914/ has an example.

Posted: Fri Mar 04, 2005 4:51 am
by painperdu
A nice and hard to find tutorial on this subject :
http://www.linuxscope.net/articles/mail ... tsPHP.html

Exactly what you're looking for (except it doesn't use sendmail):
http://sourceforge.net/project/showfile ... _id=104718

Posted: Fri Mar 04, 2005 5:04 am
by patrikG
moved to php-code. Plenty of posts about this on the board, the search-function will work miracles.