title: Send mail through smtp.gmail.com in symfony 2 using swiftmailer
body: <p>I am having a trouble of sending mail from xampp localhost using gmail. And after a long time I finally successful on it. And I am sharing it with all you. If I am wrong need proper solution for it. </p>
  
  <p>in config.yml of your symfony 2 Write those</p>
  
  <pre><code>swiftmailer:
      disable_delivery:  false
      transport: %mailer_transport%
      host:      %mailer_host%
      username:  %mailer_user%
      password:  %mailer_password%
      port:      %mailer_port%
      encryption: %mailer_encryption%
  </code></pre>
  
  <p>In your parameters.yml</p>
  
  <pre><code>mailer_transport: smtp
  mailer_host: smtp.gmail.com
  mailer_user: gmail_user_id_without_@gmail.com
  mailer_password: Your_gmail_pass
  mailer_port: 465 or 587
  mailer_encryption:  ssl 
  </code></pre>