title: PHPMailer '$mail->From = $_POST['email'] not working
body: <p>I have set up a contact form on my website that people can use to email me. The form allows them to leave their email behind so I can get back to them somehow. However for some reason no matter what email is left, the system seems to always think that I am the one who sent the email to my own email address, I am guessing this is due to the $mail->Username line of code being me? Although the from should set this, it seems it won't even if I enter the from address directly into the code.</p>
  
  <p>This is the form I am using on my site to submit the form itself.</p>
  
  <pre><code>&lt;form id="contact-form" name="contact-form" method="post" action="contact-form.php" enctype="application/x-www-form-urlencoded"&gt;
  
      &lt;input type="text" placeholder="Name" name="name" required="true"&gt;
      &lt;i class="fa fa-envelope"&gt;&lt;/i&gt;&lt;input type="email" placeholder="Email" name="email" required="true"&gt;
      &lt;input type="text" placeholder="Subject" name="subject" required="true"&gt;
      &lt;textarea placeholder="Message" name="message" rows="7" required="true"&gt;&lt;/textarea&gt;
      &lt;button type="submit" name="submit" value="submit"&gt;Send&lt;/button&gt;
      &lt;button type="reset" value="reset"&gt;Reset&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The code for the php to be executed when the form is submitted is this.</p>
  
  <pre><code>&lt;?php
  require 'assets/PHPMailer/PHPMailerAutoload.php';
  
  $mail = new PHPMailer;
  
  $mail-&gt;SMTPDebug = 3;                                             // Enable verbose debug output
  
  $mail-&gt;isSMTP();                                                    // Set mailer to use SMTP
  $mail-&gt;Host = 'smtp.live.com';                                      // Specify main and backup SMTP servers
  $mail-&gt;SMTPAuth = true;                                             // Enable SMTP authentication
  $mail-&gt;Username = 'myemail@hotmail.co.uk';                      // SMTP username
  $mail-&gt;Password = 'mypassword';                                  // SMTP password
  $mail-&gt;SMTPSecure = 'tls';                                          // Enable TLS encryption, `ssl` also accepted
  $mail-&gt;Port = 587;                                                  // TCP port to connect to
  
  $mail-&gt;From = $_POST['email'];
  $mail-&gt;addAddress('myemail@hotmail.co.uk', $_POST['name']);    // Add a recipient
  $mail-&gt;addReplyTo('info@example.com', 'Information');
  
  $mail-&gt;isHTML(true);                                                 // Set email format to HTML
  
  $mail-&gt;Subject = $_POST['subject'];
  $mail-&gt;Body    = $_POST['message'];
  $mail-&gt;AltBody = $_POST['message'];
  
  if(!$mail-&gt;send()) {
      echo 'Message could not be sent.';
      echo 'Mailer Error: ' . $mail-&gt;ErrorInfo;
  } else {
      echo 'Message has been sent';
  }
  ?&gt;
  </code></pre>
  
  <p>Any help would be much appreciated, thank you.</p>