I'm having difficulties with Paypal IPN. I have set up a Buy Button that links back to a script (ipn.php inevitably) and to test that it is working, the only code in it is as follows:
$from = "Guide Test Page";
$to = "me@btinternet.com";
$subject = "VERIFIED IPN";
$message = "Post: ".serialize($_POST)."<br>";
$headers = "From:" . $from;
mail($to, $subject, $message, $headers);
echo "Mail Sent";
So it sends me an email, hopefully with all the Paypal Post variables. What happens when I go through a 'Buy' is that the redirect to ipn.php works, I see the text 'Mail Sent' on screen and the email arrives. However, serialise($_POST) produces a:0:{}
Can anyone suggest what is going on?