Swift_TransportException in StreamBuffer.php line 269 Connection could not be established with host Name or service not known #0]
<p>I am new to Laravel and I am using Laravel 5.0 in one of my application and I am trying to send an email via smtp in Larvel but I am getting this awkward error everytime, It is also not getting my host, Cannot paste whole error in title so here it is</p>

<blockquote>
  <p>Connection could not be established with host [php_network_getaddresses: getaddrinfo failed: Name or service not
  known #0]</p>
</blockquote>

<p>My .env file code:</p>

<pre><code>MAIL_DRIVER=smtp
MAIL_HOST=mail.brownrice.com
MAIL_PORT=587
MAIL_USERNAME=cannot show user due to security
MAIL_PASSWORD=cannot show pass due to security
</code></pre>

<p>My app/mail.php</p>

<pre><code>'driver' =&gt; env('MAIL_DRIVER', 'smtp'),
'host' =&gt; env('MAIL_HOST', 'smtp.mailgun.org'),
'port' =&gt; env('MAIL_PORT', 587),
'from' =&gt; ['address' =&gt; 'reservations@rezosystems.com', 'name' =&gt; 'Rezosystems'],
'encryption' =&gt; 'tls',
'username' =&gt; env('MAIL_USERNAME'),
'password' =&gt; env('MAIL_PASSWORD'),
'sendmail' =&gt; '/usr/sbin/sendmail -bs',
'pretend' =&gt; false,
</code></pre>

<p>I am using this mail function in my MailController</p>

<pre><code>Mail::send('EmailTemplates/test_email', ['msg' =&gt; 'Congratulations!!! Your first email template sent'], function($message)
    {
        $message-&gt;to('test@rezosystems.com', 'John Doe')-&gt;subject('Test!');
    });
</code></pre>