I'm piping emails to a php script, and I want to forward them to another email (depending on variables yadda yadda)
Anyway, I can't get it to forward the exact contents of the email - and attachments are really important in what I'm doing.
Any help from anybody please?
FYI, this is how I'm finding the email
(email's defined as $email, including headers etc).
thanks to anybody who can help..
Colin
P.S. Just doing a simple mail() function (ie mail($user, $subject, $email); doesn't work)
Fixed it I think (had to say what the headers were ie content-type)
Anyway, I can't get it to forward the exact contents of the email - and attachments are really important in what I'm doing.
Any help from anybody please?
FYI, this is how I'm finding the email
PHP:
// read from stdin
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
$email .= fread($fd, 1024);
}
fclose($fd);
thanks to anybody who can help..
Colin
P.S. Just doing a simple mail() function (ie mail($user, $subject, $email); doesn't work)
Fixed it I think (had to say what the headers were ie content-type)
Last edited:




