Title: Wanted: PHP email parser Post by: payb.tc on October 04, 2011, 11:44:43 AM i'd like a php script which can take input from an email.
for example, i email phpscript@example.com with the following: blahblah 123 blah the script then saves this to a text file or db <-- you don't actually need to give me this part as long as i can see clearly some variables in the script that contain the various email components. preferably stripped down and simple as possible code. preferably procedural code, not oop. instructions/help to get it installed under debian. thanks :D Title: Re: Wanted: PHP email parser Post by: payb.tc on October 05, 2011, 04:24:36 AM thanks very much for the code, bitsky.
here it is in case anyone else finds it helpful: Code: #!/usr/bin/php basically i set up a new pop box, and a cron to run this script every 10 minutes. edit: i tested the delete/expunge commands too and it works fine, thanks :D |