title: PhpMailer Invalid address:(setFrom)
body: <p>I don't know why it's not working. As far as i understand in some point my post request it's not been accepted ... so here is my code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;meta charset="utf-8" type="text/html"&gt;
  
  &lt;?php
  echo !extension_loaded('openssl')?"Not Available":"Available";
  echo'&lt;br&gt;';
  include 'PHPMailer/PHPMailerAutoload.php';
  $name = $_POST['nombre'];
  $mailfrom = $_POST['email'];
  $context = $_POST['context'];
  
  echo $name,$mailfrom,$context;
  echo "&lt;br&gt;";
  
  echo "&lt;br&gt;";
  $subject = 'Information';
  /*i'm not sure if i can use any gmail or it needs to be
    registred on my server admin panel*/
  $to ="my@gmail.com";
  define ('GUSER','my@gmail.com');
  define ('GPWD','pass');
  
  
  // make a separate file and include this file in that. call this function in that file.
  
  function smtpmailer( $mailfrom, $name, $subject, $context) {
      global $error;
      $mail = new PHPMailer();  // create a new object
      $mail-&gt;IsSMTP(); // enable SMTP
      $mail-&gt;SMTPDebug = 2;  // debugging: 1 = errors and messages, 2 = messages only
      $mail-&gt;SMTPAuth = true;  // authentication enabled
      $mail-&gt;SMTPSecure = 'tls'; // secure transfer enabled REQUIRED for GMail
      $mail-&gt;SMTPAutoTLS = false;
      $mail-&gt;Host = 'ssl://smtp.gmail.com';
      $mail-&gt;Port = 587;
      $mail-&gt;CharSet = "UTF-8";
  
      $mail-&gt;Username = GUSER;
      $mail-&gt;Password = GPWD;
      $mail-&gt;SetFrom ($mailfrom); //here it's my error
      $mail-&gt;Subject = $subject;
      $mail-&gt;Body = $context;
      $mail-&gt;AddAddress('my@gmail.com');
      if(!$mail-&gt;Send()) {
          $error = 'Mail error: '.$mail-&gt;ErrorInfo;
          return false;
      } else {
          $error = 'Message sent!';
          return true;
      }
  }
   smtpmailer();
  
    ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Other important things to mention. This are the setting my hosting provider gives me. And i'm not sure if i'm using them properly. I've tried with all ports and host, but just get the same error.</p>
  
  <p><a href="https://i.stack.imgur.com/QMWHp.png" rel="nofollow noreferrer">smtp settings</a></p>
  
  <p><a href="https://i.stack.imgur.com/eSLDo.png" rel="nofollow noreferrer">ports</a></p>
  
  <p>i really  appreciate all the help :)</p>