I have been struggling for the past 2 days with connecting my mail.php file with the web form variables located in index.html. I am able to send email via the gmail SMTP (I installed PHPMailer) however I am unable to to see the parameters the user entered when he filled out the form (his name, and some text, so 2 fields) when I receive the email sent by php via gmail smtp.

-->Below is the html file
<form action="mail.php" method="POST">
<table align="center"><tr>
<td align="center" style="font-family:Helvetica;font-size:32px;font-weight: 300">Name:</td>
<td><input type="text" name="name" size=50></td>
<tr>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td align="center" style="font-family:Helvetica;font-size:32px;font-weight: 300">Text:</td>
<td><input type="text" name="content" size=50><td>
</tr>
<tr>
<td align="center"></td>
<td><input class="rounded" type="submit" value="Request Invitation" style="font-family:Helvetica;font-size:32px;font-weight: 300"></td>
</tr>
</table>
</form>
-->here is the mail.php.
<html>
<head><title>PHP Mail Sender</title></head>
<body>
<?php
require("./PHPMailer/class.phpmailer.php"); // path to the PHPMailer class
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Mailer = "smtp";
$mail->Host = "ssl://smtp.gmail.com";
$mail->Port = 465;
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "@.com"; // SMTP username
$mail->Password = " "; // SMTP password
$mail->From = "";
$mail->AddAddress(" ");
$mail->Subject = "Invitation Request";
$mail->Body = "Hello";
$mail->WordWrap = 50;
$mail->Name = 'name'; // parameter used in index.html HOW TO CREATE THE LINK BETWEEN THE TWO FILES?
$mail->Content = 'content' ; // parameter used in index.html HOW TO CREATE THE LINK BETWEEN THE TWO FILES?
include 'index.html';// trying to create a link for the two above vaiables in index.html
(!$mail->Send()) {
echo 'Invitation request was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
echo 'Invitation sent.';
}
?>
</body>
</html>
Many thanks !
D