Hey,
I am trying to write a script for my ISPConfig install. I am trying to pipe an e-mail to my php script but I am getting this error:
cannot append message to destination file
/var/www/web7/web/network/email/email.php: cannot open file: Permission denied
This is my config:
.forward:
|/usr/bin/php /var/www/web7/web/network/email/email.php
email.php: chown - postfix

ostfix chmod - 755
<?php
// read from stdin
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
$email .= fread($fd, 1024);
}
fclose($fd);
$message = 'bla' ;
mail('chris@skateeast.net', 'Backups', $message);
?>
Any help would be great!!!
Many Thanks
Chris.
Recent comments
1 day 4 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 14 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 11 hours ago