Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001122

Re: [PHP] "Email-based PHP-Script" From: Attila Strauss (shortys <email protected>)
Date: 12/18/01

Hi

http://www.linuks.net/robot.phps

best regards
attila strauss

> 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>
>

-- 
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>