PHP Pear - agregando variables a $ body message

Este es mi formulario HTML, que está dentro de una pequeña caja en mi sitio.

<form name="contactform" action="contact/form-mailer.php" method="post">


<p>*Name: <input name="Name" id="Name" size="25"></p>


<p>*Pickup from: <input name="pfrom" id="pform" size="25"></p>


<p>*Destination: <input name="destin" id="destin" size="25"></p>


<p>*E-mail: <input name="Email" id="Email" size="25"></p>


<p>*Phone: <input name="Phone" id="Phone" size="25"></p>

<p><input type="submit" value="Submit" name="submitform"><input type="reset" value="Reset" name="reset"></p>

</form>

Y este es mi PHP actual para enviar el correo usando PEAR. Todavía no he agregado todas las variables al $ body, ya que he estado tratando de que realmente funcione.

<?php

   // Include the Mail package
   //require "Mail.php";
   include 'Mail.php';


   // Identify the sender, recipient, mail subject, and body
   $sender    = "XXXXXX";
   $recipient = "XXXXXX";
   $subject   = "FORM";
   $body      = $name; // Even when seting $name in the PHP file it still doesn't show!

   // Identify the mail server, username, ,password, and port
   $server   = "ssl://smtp.gmail.com";
   $username = "XXXXXXXX";
   $password = "XXXXXXXX";
   $port     = "465";

    // Get form var's   
    $name = "Test"; //  I set $name to "Test" in the PHP and still the variable does not appear in the email.
    $destin = $_POST['destin'];
    $email = $_POST['Email'];
    $pfrom = $_POST['pfrom'];

   // Set up the mail headers
   $headers = array(
      "From"    => $sender,
      "To"      => $recipient,
      "Subject" => $subject
   );

   // Configure the mailer mechanism
   $smtp = Mail::factory("smtp",
      array(
        "host"     => $server,
        "username" => $username,
        "password" => $password,
        "auth"     => true,
        "port"     => 465
      )
   );

   // Send the message
   $mail = $smtp->send($recipient, $headers, $body);

   if (PEAR::isError($mail)) {
      echo ($mail->getMessage());
   }

?>

Así que no tengo idea de por qué esto no funciona. Necesito cuerpo para ser así

$body = $name . " wants to go to " . $destin . " from " . $pfrom;

Pero simplemente no recoge ninguna variable, independientemente de si estoy tratando de obtenerlas del formulario HTML o establecerlas en el archivo PHP. Esperaba que esto fuera realmente fácil, pero esto me ha dejado perplejo por más de un día. Muy frustrante. No puedo encontrar ningún ejemplo en ningún lugar que muestre cómo hacerlo, y solo unos pocos han hecho esta pregunta exacta y no han recibido una respuesta definitiva.

Respuestas a la pregunta(2)

Su respuesta a la pregunta