我已经正确设置了 IPN,但仍然无法让它发送电子邮件。我假设的来自 ipnlistener.php 的部分代码是错误的:
$code = md5($_COOKIE["AlphaEmail"]);
$to = $_COOKIE["AlphaEmail"]";
$subject = 'WTL Account Activation;
$message = 'Thank you for your purchase.\n\n http://www.worktheline.org/activate.php?code='.$code.'; $headers = 'From:noreply@worktheline.org' . "\r\n";
mail($to, $subject, $message, $headers);
此段之前的代码是从这里复制的:https ://developer.paypal.com/webapps/developer/docs/classic/ipn/ht_ipn/所以我想我可以放心地假设这一切都是正确的?