title: Sending mail with swiftmailer via OVH mail
body: <p>I want to send confirmation email to users. I did install swiftmailer with composer and these are my configuration in parameters. yml and config.yml</p>
  
  <pre><code>parameters:
  database_host: 127.0.0.1
  database_port: null
  database_name: xxxx
  database_user: root
  database_password: root
  mailer_transport: smtp
  mailer_host: 127.0.0.1
  mailer_user: xxxxx@xxxxxx.com
  mailer_password: xxxx
  secret: ea293ee3152cb8522e591a6cb821f950cc67f499
  spool:
          type:                 file
  
  mailer_port: 587
  mailer_encryption: tls
  mailer_logging: '%kernel.debug%'
  </code></pre>
  
  <p>config.yml</p>
  
  <pre><code>swiftmailer:
  transport: '%mailer_transport%'
  host: '%mailer_host%'
  username: '%mailer_user%'
  password: '%mailer_password%'
  spool: { type: memory }
  </code></pre>
  
  <p>I added this code to my controller and I tested but nothing sent:</p>
  
  <pre><code>    $message = \Swift_Message::newInstance()
                  -&gt;setSubject('hello')
                  -&gt;setFrom('example@gmail.com')
                  -&gt;setTo('xx.xx@xxx.tn')
                  -&gt;setBody('@servicom/pages/profile_commercial.html.twig', 'text/html');
  
  # Send the message
              $this-&gt;get('mailer')
                  -&gt;send($message);
  </code></pre>
  
  <p>I want to ask if the problem is from the configuration or from the code.</p>
  
  <p>Thanks in advance.</p>