You are here: Re: Script that receives email message and responds depending on content « PHP Programming Language « IT news, forums, messages
Re: Script that receives email message and responds depending on content

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация