Php + email help

SpaceshipSpaceship
Watch

tm

Established Member
Impact
25
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

PHP:
// read from stdin
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
    $email .= fread($fd, 1024);
}
fclose($fd);
(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)
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back