title: Connection could not be established with host smtp.gmail.com Network is unreachable #101 error in Laravel email
body: <p>I am trying to send email from my laravel 5.1 system. I can send emails from my localhost and unable to send from the server. See my email configuration settings in .env file,</p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST= smtp.gmail.com
  MAIL_PORT= 587
  MAIL_USERNAME= username***@gmail.com
  MAIL_PASSWORD= *********
  MAIL_ENCRYPTION=tls
  </code></pre>
  
  <p>This configuration only work on my localhost. On server I am getting this error,</p>
  
  <pre><code>Swift_TransportException in StreamBuffer.php line 268:
  Connection could not be established with host smtp.gmail.com [Network is unreachable #101]
  </code></pre>
  
  <p>I also try with changing <code>MAIL_PORT</code> from <code>587</code> to <code>465</code> and <code>MAIL_ENCRYPTION</code> from <code>tls</code> to <code>ssl</code>. But I am geeitng the same error. How can I fix this issue?</p>