title: PHPmailer gmail 'from' is gmail account
body: <p>I'm trying to send a mail with PHPmailer and gmail. But when I send a mail its from my gmail account instead of no-reply. How do I set no-reply as from?</p>
  
  <p>Code I have:</p>
  
  <pre><code>$mail = new PHPMailer();  
  
  $mail-&gt;Mailer = "smtp";
  $mail-&gt;Host = "ssl://smtp.gmail.com";
  $mail-&gt;Port = 465;
  $mail-&gt;SMTPAuth = true; 
  $mail-&gt;Username = "myAccount@web.com"; 
  $mail-&gt;Password = "password"; 
  
  $mail-&gt;From     = "no-reply@web.com";
  $mail-&gt;AddAddress($to);  
  $mail-&gt;AddReplyTo("no-reply@web.com","no-reply");
  
  $mail-&gt;Subject  = $subject;
  $mail-&gt;Body     = $msg;
  $mail-&gt;WordWrap = 150; 
  $mail-&gt;send();
  </code></pre>
  
  <p>The mail I get receives (headers):</p>
  
  <pre><code>Return-Path: &lt;myAccount@web.com&gt;
  </code></pre>
  
  <p>Which should be no-reply@web.com</p>
  
  <p>Thanks in advance</p>