Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Php + email help

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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.
GoDaddyGoDaddy
Appraise.net

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back