Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Php + email help

SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back