title: change the displayed sender email by phpmailer
body: <p>Here When I am sending the mail through phpmailer, username  testname get on mail. However I want testname to be displayed.
  What I understand from the phpmailer is the $mail->Username and $mail->Password is required to authentication and $mail->Username is also used at envelope mail. Is there any way to change testname to testname. And I also tried to set $mail->Sender, still not working.  I know I am doing some silly mistake here, but I am stuck here now. Any help will be appreciated. Thanks in advance.</p>
  
  <pre><code>    $mail-&gt;Username   = 'xyz@gmail.com';
      $mail-&gt;Password   = 'xxxxx';
      $name='testname';
  
      $mail-&gt;SetFrom('testmail.com', $name, true);
  
      $mail-&gt;AddReplyTo('no-reply@mycomp.com','no-reply');
      $mail-&gt;Subject    = 'subject';
      $mail-&gt;MsgHTML($body);
  
      $mail-&gt;AddAddress('xyz@gmail', 'title1');
      //$mail-&gt;AddAddress('abc2@gmail.com', 'title2'); /* ... */
      $fileName='../rough/test.pdf';
      $mail-&gt;AddAttachment($fileName);
  </code></pre>