Re: [exim] Deliver mail to a php script

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: adam.benayoun
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Deliver mail to a php script

I was able to resolve this on my own, sharing with you the way I did that:

// Get the email from stdin
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
    $email .= fread($fd, 1024);
}
fclose($fd);


On the script end, I am retrieving the whole email from the STDIN.
Seems that there's no variable I can pass to my php script in order to pass
the whole message.
Thanks anyway
--
View this message in context: http://www.nabble.com/Deliver-mail-to-a-php-script-tp17833994p17837684.html
Sent from the Exim Users mailing list archive at Nabble.com.