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
3 hours 44 min ago
13 hours 12 min ago
14 hours 1 min ago
17 hours 35 min ago
21 hours 59 min ago
22 hours 20 min ago
1 day 30 min ago
1 day 10 hours ago
1 day 15 hours ago
1 day 16 hours ago