title: Mailhog Setup in Laravel 6.x
body: <p>Using Laravel 6.0, I have configured my <code>.env</code> file to utilize Mailhog in my local environment as explained in the <a href="https://laravel.com/docs/6.x/homestead#configuring-mailhog" rel="nofollow noreferrer">Docs</a>.</p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=0.0.0.0
  MAIL_PORT=1025
  MAIL_USERNAME=null
  MAIL_PASSWORD=null
  MAIL_ENCRYPTION=null
  </code></pre>
  
  <p>I can go to <code>http://localhost:8025</code> and see the Mailhog interface. </p>
  
  <p>However, when I try to send an email either through a controller method or on my local file system via <code>php artisan tinker</code>, no mail gets through.</p>
  
  <p><strong>The only time mail does get through</strong> to Mailhog is if I <code>vagrant ssh</code> and run <code>php artisan tinker</code> from inside of there.</p>
  
  <p>This is all I'm trying to send: <code>Mail::raw('FROM HOME CONTROLLER', function ($message){ $message-&gt;to('contact@contact.com');});</code></p>
  
  <p>I have tried using MAIL_HOST=localhost, 127.0.0.1, 192.168.10.10. I've tried different user/pass combos (testuser, password, testpass, etc), to no avail.</p>