title: laravel with mailgun set up
body: <p>I read everything I can 
  and looks like I set it up and fill in everywhere according to the docs (and internet) but still cant receive any emails.</p>
  
  <p>I need to use MailGun API so I can send emails from my localhost as well as from the test and prod + because 25 port usually closed.</p>
  
  <p>I filled in everything I can just in case some miracle happen (was changing between smtp/mailgun in <code>.env</code>)</p>
  
  <p>I have tried both my real server settings and when I fail tried without any success sandbox as well. </p>
  
  <p>my mailgun data access (some letters hidden):</p>
  
  <ol>
  <li><p>my mailgun sandbox server
  <a href="https://i.imgur.com/XCi8Hkn.png" rel="nofollow noreferrer">http://i.imgur.com/XCi8Hkn.png</a></p></li>
  <li><p>when i click to it i have an option to choose between API and SMTP<br>
  2.1 in API tab i have API KEY: <a href="https://i.imgur.com/xGSq7aF.png" rel="nofollow noreferrer">http://i.imgur.com/xGSq7aF.png</a><br>
  2.2 in SMTP box i have smtp host, port, login, passwd: <a href="https://i.imgur.com/t5Pi6lH.png" rel="nofollow noreferrer">http://i.imgur.com/t5Pi6lH.png</a>  </p></li>
  <li>my <code>.env</code>:</li>
  </ol>
  
  <pre><code>MAIL_DRIVER=mailgun
  
  MAILGUN_DOMAIN=sandbox8ffe89553e224c468f4ad0cf6b4da3c2.mailgun.org
  MAILGUN_SECRET=b3ff30bxxxxxxxxxxxxxxxx087d-f877bd7a-01ecceaa
  </code></pre>
  
  <p>somewhere in internet found that MAILGUN_DOMAIN &amp; MAILGUN_SECRET
   could be added in <code>.env</code> so tried them here as well</p>
  
  <ol start="4">
  <li><code>config/mail.php</code></li>
  </ol>
  
  <pre><code>    'driver' =&gt; env('MAIL_DRIVER', 'mailgun'),
  </code></pre>
  
  <ol start="5">
  <li><code>app/mail/Test.php</code></li>
  </ol>
  
  <pre><code>    public function build()
      {
          return $this-&gt;from('support@sandbox8ffe89553e224c468f4ad0cf6b4da3c2.mailgun.org')
                      -&gt;subject('HELLO')
                      -&gt;view('test');
      }
  </code></pre>
  
  <ol start="6">
  <li><p>sandbox "to" email verified <a href="https://i.imgur.com/tDhgLcT.png" rel="nofollow noreferrer">http://i.imgur.com/tDhgLcT.png</a></p></li>
  <li><p><code>TestController</code></p></li>
  </ol>
  
  <pre><code>use App\Mail\Test;
  use Illuminate\Support\Facades\Mail;
  
  class TestController extends Controller
  {
      public function test()
      {
          echo 'hello';
  
          try {
              Mail::to('myaddress@gmail.com')-&gt;send(new Test());
          } catch  (\Exception $e) {
              dump($e);
          }
  
          echo 'hello2';
  
      }
  }
  
  </code></pre>
  
  <ol start="7">
  <li><code>resources/views/test.blade.php</code></li>
  </ol>
  
  <pre><code>hello
  </code></pre>
  
  <ol start="8">
  <li>was using even so just in case</li>
  </ol>
  
  <pre><code>&gt; artisan cache:clear
  &gt; artisan config:cache
  &gt; artisan cache:clear
  </code></pre>
  
  <p>9</p>
  
  <p>please help, what is missing ? what i did wrong ?</p>