title: Laravel sending mail issue after site migration
body: <p>I know this question has been asked many times before, but I have attempted a lots of these solutions without any success.</p>
  
  <p>Hello i have issue in sending mail to laravel as its working fine but after migrating site to other server with ssl and now having issue as its giving below error.</p>
  
  <p><code>Expected response code 220 but got code \"\", with message \"\"</code></p>
  
  <p>below is the code used for <code>.end</code> and <code>mail.php</code></p>
  
  <p><code>.env</code></p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.gmail.com
  MAIL_PORT=465
  MAIL_USERNAME=myemail@gmail.com
  MAIL_PASSWORD=mypassword
  MAIL_ENCRYPTION=tls
  </code></pre>
  
  <p><code>mail.php</code></p>
  
  <pre><code>&lt;?php
  
  return [
  
       'driver' =&gt; env('MAIL_DRIVER'),
       'host' =&gt; env('MAIL_HOST'),
       'port' =&gt; env('MAIL_PORT'),
       'from' =&gt; [
          'address' =&gt; env('MAIL_FROM_ADDRESS', 'developer.eww@gmail.com'),
          'name' =&gt; env('MAIL_FROM_NAME', 'GBAN'),
      ],
      'encryption' =&gt; env('MAIL_ENCRYPTION','tls'),
      'username' =&gt; env('MAIL_USERNAME'),
      'password' =&gt; env('MAIL_PASSWORD'),
      'sendmail' =&gt; '/usr/lib/sendmail -i -t',
      'markdown' =&gt; [
          'theme' =&gt; 'default',
  
          'paths' =&gt; [
              resource_path('views/vendor/mail'),
          ],
      ],
  ];
  </code></pre>