title: Configure email with TLS in Laravel - Error SSL operation failed with code 1
body: <p>I want to configure a custom email (not gmail) with TLS using Laravel and I can't make it work.</p>
  <p>The error I get is:</p>
  <blockquote>
  <p>stream_socket_enable_crypto(): SSL operation failed with code 1.
  OpenSSL Error messages:\nerror:1416F086:SSL
  routines:tls_process_server_certificate:certificate verify failed</p>
  </blockquote>
  <p>In my <code>.env</code> file I have:</p>
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=mail.**********.com
  MAIL_PORT=587
  MAIL_USERNAME=system@**********.com
  MAIL_PASSWORD=**********
  MAIL_FROM_ADDRESS=system@**********.com
  MAIL_ENCRYPTION=tls
  </code></pre>
  <p>I tried the same account in a non Laravel PHP project and it works just fine. In that project, I have this option that I think is the key:</p>
  <pre><code>$mailer-&gt;SMTPOptions = array(
      'ssl' =&gt; array(
          'verify_peer' =&gt; false,
          'verify_peer_name' =&gt; false,
          'allow_self_signed' =&gt; true
          )
      );
  $mailer-&gt;SMTPAuth = true;
  $mailer-&gt;SMTPSecure = 'tls';
  </code></pre>
  <p>How can I configure this options in Laravel? Or is another mistake?
  Thanks for your help.</p>