title: Symfony 4 SwiftMailer Gmail : Email not sent
body: <p>I'm currently working on a Symfony 4 application and I need to send emails throught Swift Mailer.
  When I send an email, I receive the email spooled but I don't get it in my Gmail Mailbox.
  I allowed unsecure apps in my gmail configuration.</p>
  <p>This is my mailer URL from .env file : MAILER_URL=gmail://ep****@gmail.com:PASSWORD@localhost</p>
  <p>This is my swiftmailer.yaml:</p>
  <pre><code>    #config/packages/swiftmailer.yaml
      swiftmailer:
          url: '%env(MAILER_URL)%'
          spool: { type: 'memory' }
  </code></pre>
  <p>This is my controller function:</p>
  <h1>src/Controller/AccountController.php</h1>
  <p><a href="https://i.stack.imgur.com/eXISG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eXISG.png" alt="After completing a form" /></a></p>
  <p>This is the documentation I've followed :
  <a href="http://symfony.com/doc/current/email.html" rel="noreferrer">http://symfony.com/doc/current/email.html</a></p>
  <p>I've checked these questions but they don't give me the answer : <a href="https://stackoverflow.com/questions/48027178/how-to-send-emails-with-symfony-4-swiftmailer-from-a-local-machine-running-on-wi?rq=1">How to send emails with Symfony 4 Swiftmailer from a local machine running on Windows 10?</a> , <a href="https://stackoverflow.com/questions/48230130/mailer-symfony-4-not-working?rq=1">mailer symfony 4 not working</a></p>
  <p>Please, I need help. I've looked for the solution all day long. I get no errors but I don't receive the mail.
  Thanks in advance. Any link can help me.</p>