I like to use a ping to sent an invoice after a membership purchase (i can't believe this isnt integrated yet), however using the following example mail function:
$to = 'firstname.lastname@example.org';
$subject = $_POST['username'];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$message = "Blog url: ".$_POST['blogurl']."
Membership Level: ".$_POST['level']."
mail($to, $subject, $message, $headers);
and the following ping setup:
Ping name: Receipt
Ping URL: http://mysubdomain.mydomain.nl/pingtest.php
It does sent the e-mail but it does not post the values such as username and subscription. Please tell me what i'm doing wrong.