title: Laravel 5.4 send Email with gmail
body: <p>I'm trying to send Emails from google but couln't make it yet. I did everything I've found by searching through google but it still won't work. </p>
  
  <p>My Mail.php </p>
  
  <pre><code>'driver' =&gt; env('MAIL_DRIVER', 'smtp'),
  'host' =&gt; env('MAIL_HOST', 'smtp.gmail.com'),
  'port' =&gt; env('MAIL_PORT', 587),
  'from' =&gt; [
      'address' =&gt; env('MAIL_FROM_ADDRESS', 'myemail@gmail.com'),
      'name' =&gt; env('MAIL_FROM_NAME', 'blablabla'),
  ],
  'encryption' =&gt; env('MAIL_ENCRYPTION', 'tls'),
  'username' =&gt; env('MAIL_USERNAME'),
  'password' =&gt; env('MAIL_PASSWORD'),
  'sendmail' =&gt; '/usr/sbin/sendmail -bs',
  </code></pre>
  
  <p>my .env: </p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.gmail.com
  MAIL_PORT=587
  MAIL_USERNAME=myemail@gmail.com
  MAIL_PASSWORD=mypassword
  MAIL_ENCRYPTION=tls
  </code></pre>
  
  <p>I also allowed "Less secure Apps" on the gmail settings. </p>
  
  <p>The Mail-Code works perfect, I've tried it out before on mailtrap.io. But if I change it to google I only get errors.</p>
  
  <p>Thats my Code for sending Mail: </p>
  
  <pre><code>    \Mail::to('hardcodededmail@gmail.com')-&gt;send(new NewThread($thread));
  </code></pre>
  
  <p>And thats the error: </p>
  
  <p>(1/1) ErrorException</p>
  
  <pre><code>stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
  error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
  </code></pre>
  
  <p>Can someone help me there? </p>