title: Swiftmailer setFrom address doesn't change anything
body: <p>I know my question seems strange. I am using PHP and SwiftMailer package. Here is my code:</p>
  
  <pre><code>$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, "ssl")
      -&gt;setUsername('adresim@gmail.com')
      -&gt;setPassword('my_pass');
  $mailer = Swift_Mailer::newInstance($transport);
  $message = Swift_Message::newInstance($title)
      -&gt;setFrom(array('adresim@hotmail.com'))
      -&gt;setTo($to_adresses)
      -&gt;setReplyTo("another_address")
      -&gt;setBody($body, "text/html");
  </code></pre>
  
  <p>here is the problem. When i send a mail it appears that it came from my gmail address. In this example i am using gmail smtp and everything is fine but setFrom command doesn't seem to do anything at all. Even if i set the from address as a Hotmail address, my mail goes fine and it is sent from my gmail adres. What does setFrom command do? How can i make the mail be sent from the given FROM adres? If smtp connection username the is the only important thing, why there is a setFrom command?</p>