Re: "Email-based PHP-Script"
| From: | Attila Strauss | Date: | Tue, 18 Dec 2001 18:49:05 +0000 |
| Subject: | Re: "Email-based PHP-Script" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78120@lists.php.net to get a copy of this message | ||
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@receiver.de", "Test", "$INPUT", "From:
> test@sender.de");
> 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@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>