php-general | 2001122
Date: 12/18/01
- Next message: Attila Strauss: "Re: [PHP] "Email-based PHP-Script""
- Previous message: Chris Lee: "Re: [PHP] php htpasswd"
- Next in thread: Attila Strauss: "Re: [PHP] "Email-based PHP-Script""
- Reply: Attila Strauss: "Re: [PHP] "Email-based PHP-Script""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello List,
I'm currently trying to setup a script which is processing incomming emails.
So I setup PHP as CGI and did configurate the email like
robot "|/path/to/the/script.php"
The little testscript I tried looks like that:
<?
$fp = fopen("php://stdin","r");
while (!feof($fp))
{ $BUFFER = fgets($fp);
$INPUT .= $BUFFER;
}
mail ("info <email protected>", "Test", "$INPUT", "From: test <email protected>");
fclose($fp);
?>
The error which I get is
/path/to/the/script.php: cannot open ?: no such file
554 5.3.0 unknown mailer error 2
Does anybody have some PHP code which would work to readout incomming emails
or knows that's wrong with my little script?
Thanks a lot.
Juergen
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Attila Strauss: "Re: [PHP] "Email-based PHP-Script""
- Previous message: Chris Lee: "Re: [PHP] php htpasswd"
- Next in thread: Attila Strauss: "Re: [PHP] "Email-based PHP-Script""
- Reply: Attila Strauss: "Re: [PHP] "Email-based PHP-Script""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

