title: $_GET Input Data from Form and output into email using PHPMailer
body: <p>I have a form that I am building that will then send an email using PHPMailer.</p>
  
  <p>The email is working and sending however I am getting stuck on putting the input values into the email body message.</p>
  
  <p>This is my HTML</p>
  
  <pre><code>    &lt;form class="get-a-quote" method="get" action="/wp-content/themes/wozencraft/php-mailer/mailer.php"&gt;
          &lt;div class="get-a-quote-form-carousel"&gt;
  
              &lt;!-- Start Insured Information --&gt;
              &lt;div class="carousel-cell"&gt;
                  &lt;div class="form-inputs"&gt;
                      &lt;h4&gt;Insured Information&lt;/h4&gt;
                      &lt;p&gt;This wont take long. Please fill out the following information about yourself.&lt;/p&gt;
  
                      &lt;label for="date"&gt;Date&lt;/label&gt;
                      &lt;input type="date" placeholder="" id="date"&gt;
  
                      &lt;label for="reffered-by"&gt;Reffered By&lt;/label&gt;
                      &lt;input type="text" placeholder="" id="reffered-by"&gt;
  
                      &lt;label for="insureds-name"&gt;Insursed's Name&lt;/label&gt;
                      &lt;input type="text" placeholder="" id="insureds-name"&gt;
  
                      &lt;label for="street-address"&gt;Street Address&lt;/label&gt;
                      &lt;input type="text" placeholder="" id="street-address"&gt;
  
                      &lt;label for="city"&gt;City&lt;/label&gt;
                      &lt;input type="text" placeholder="" id="city"&gt;
  
                      &lt;label for="state"&gt;State&lt;/label&gt;
                      &lt;input type="text" placeholder="" id="state"&gt;
  
                      &lt;label for="zip-code"&gt;Zip Code&lt;/label&gt;
                      &lt;input type="text" placeholder="" id="zip-code"&gt;
  
                      &lt;label for="insured-email"&gt;E-mail Address&lt;/label&gt;
                      &lt;input type="email" name="insuredEmail" placeholder="" id="insured-email"&gt;
  
                      &lt;label for="insured-phone-number"&gt;Phone Number&lt;/label&gt;
                      &lt;input type="text" placeholder="" id="insured-phone-number"&gt;
  
                      &lt;input type="submit" value="Submit"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
         &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>mailer.php</p>
  
  <pre><code>&lt;?php
  /**
   * This example shows settings to use when sending via Google's Gmail servers.
   */
  //SMTP needs accurate times, and the PHP time zone MUST be set
  //This should be done in your php.ini, but this is how to do it if you don't have access to that
  //date_default_timezone_set('Etc/UTC');
  
  // $email and $message are the data that is being
  // posted to this page from our html contact form
  
  $email = $_GET['insuredEmail'];
  
  
  require 'PHPMailerAutoload.php';
  
  echo (extension_loaded('openssl')?'SSL loaded':'SSL not loaded')."\n";
  
  //Create a new PHPMailer instance
  $mail = new PHPMailer;
  
  //Tell PHPMailer to use SMTP
  $mail-&gt;isSMTP();
  
  //Enable SMTP debugging
  // 0 = off (for production use)
  // 1 = client messages
  // 2 = client and server messages
  $mail-&gt;SMTPDebug = 2;
  
  //Ask for HTML-friendly debug output
  $mail-&gt;Debugoutput = 'html';
  
  //Set the hostname of the mail server
  $mail-&gt;Host = 'smtp.gmail.com';
  
  // use
  // $mail-&gt;Host = gethostbyname('smtp.gmail.com');
  
  // if your network does not support SMTP over IPv6
  //Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
  $mail-&gt;Port = 587;
  
  //Set the encryption system to use - ssl (deprecated) or tls
  $mail-&gt;SMTPSecure = 'tls';
  
  //Whether to use SMTP authentication
  $mail-&gt;SMTPAuth = true;
  
  //Username to use for SMTP authentication - use full email address for gmail
  $mail-&gt;Username = "myemail@gmail.com";
  
  //Password to use for SMTP authentication
  $mail-&gt;Password = "mypasswod";
  
  //Set who the message is to be sent from
  $mail-&gt;setFrom($email, 'First Last');
  
  //Set an alternative reply-to address
  $mail-&gt;addReplyTo($email, 'First Last');
  
  //Set who the message is to be sent to
  $mail-&gt;addAddress($email, 'John Doe');
  
  //Set the subject line
  $mail-&gt;Subject = 'Test Get A Quote';
  
  //Read an HTML message body from an external file, convert referenced images to embedded,
  //convert HTML into a basic plain-text alternative body
  $mail-&gt;msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
  
  //Replace the plain text body with one created manually
  $mail-&gt;Body    = 'This is the HTML message body' . $email;
  
  $mail-&gt;AltBody = 'This is a plain-text message body';
  
  //Attach an image file
  //$mail-&gt;addAttachment('images/phpmailer_mini.png');
  
  //send the message, check for errors
  if (!$mail-&gt;send()) {
      echo "Mailer Error: " . $mail-&gt;ErrorInfo;
  } else {
      echo "Message sent!";
      echo $email;
  }
  </code></pre>
  
  <p>Any I know this must be something small that I am missing. Just need another set of eyes. Thanks in Advance.</p>