title: SMTP protocol mail is not working using mail trap
body: <p>I am using smtp protocol to send mails using mailtrap. It is working perfectly in localhost but it is giving error. <strong>Connection could not be established with host smtp.mailtrap.io [Connection refused #111].</strong> </p>
  
  <p><strong>.env</strong> </p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.mailtrap.io
  MAIL_PORT=2525
  MAIL_USERNAME=********
  MAIL_PASSWORD=********
  MAIL_ENCRYPTION=null
  </code></pre>
  
  <p><strong>mail.php</strong></p>
  
  <pre><code>&lt;?php
  return [
  
      'driver' =&gt; env('MAIL_DRIVER', 'smtp'),
      'host' =&gt; env('MAIL_HOST', 'smtp.mailtrap.org'),
      'port' =&gt; env('MAIL_PORT', 2525,
      'from' =&gt; [
          'address' =&gt; env('MAIL_FROM_ADDRESS', 'hello@example.com'),
          'name' =&gt; env('MAIL_FROM_NAME', 'Example'),
      ],
      'encryption' =&gt; env('MAIL_ENCRYPTION', 'tls'),
      'username' =&gt; env('MAIL_USERNAME'),
  
      'password' =&gt; env('MAIL_PASSWORD'),
      'sendmail' =&gt; '/usr/sbin/sendmail -bs',
  
      'markdown' =&gt; [
          'theme' =&gt; 'default',
  
          'paths' =&gt; [
              resource_path('views/vendor/mail'),
          ],
      ],
  
  ];
  </code></pre>