title: Laravel Sending Emails with Mailgun
body: <p>Trying to follow the documentation (<a href="http://itsolutionstuff.com/post/mailgun-setup-with-laravel-5-exampleexample.html" rel="nofollow noreferrer">http://itsolutionstuff.com/post/mailgun-setup-with-laravel-5-exampleexample.html</a> and <a href="https://laravel.com/docs/5.2/mail" rel="nofollow noreferrer">https://laravel.com/docs/5.2/mail</a>) to get my laravel instance to send emails using Mailgun. Seems to work, from the contact page, because it redirects itself to the contact page, but the email never seems to be sent. Mailgun is also not registering that it sent an email.</p>
  
  <p>From Mailgun, the domain has already been verified and DNS for TXT values have been setup.</p>
  
  <p>Using Laravel 5.4</p>
  
  <pre><code>    Mail::send('emails.contactEmail', ['header' =&gt; $headers], function($message) {
          $message-&gt;from('info@domainname.com', 'Info Header');
          $message-&gt;to('personalemailfortest@gmail.com');
  
      });
  </code></pre>
  
  <p>.env file is setup like so:</p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.mailgun.org
  MAIL_PORT=587
  MAIL_USERNAME=postmaster@mg.domainname.com
  MAIL_PASSWORD=1****************************8
  MAIL_ENCRYPTION=tls
  </code></pre>
  
  <p>services.php</p>
  
  <pre><code>   'mailgun' =&gt; [
          'domain' =&gt; env('mg.domainname.com'),
          'secret' =&gt; env('key-f**************************e'),
      ],
  </code></pre>
  
  <p>No error messages anywhere in console or laravel.log. Not sure where things are breaking down. Not even sure how to begin troubleshooting this issue.</p>