|
Posted by David Quinton on 01/03/08 07:42
On Wed, 2 Jan 2008 15:52:21 -0800 (PST), faulkes
<michael.behrens@gmail.com> wrote:
>I use perl to do it, although I imagine you could use php as well.
PHP works fine but, on our LAMP setup at least, you need to run PHP as
a CGI I think.
#!/opt/php5/bin/php
as the first line of your script.
Then I read in the Email like this:
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
$email .= fread($fd, 1024);
}
fclose($fd);
and process.
--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
Navigation:
[Reply to this message]
|