title: Receiving a blank page with no error on submitting php contact form
body: <p>I made a simple Contact us form and it worked perfectly fine. But now, after adding a mailgun script for sending and receiving emails it is showing me nothing but a blank page .</p>
  
  <p><strong>Script:</strong></p>
  
  <pre><code>&lt;?php
  require 'vendor/autoload.php';
  use Mailgun\Mailgun;
  $mailgun = new Mailgun('key-41616099541fe1b0187e7cd970127240', new \Http\Adapter\Guzzle6\Client());
  
  $mgClient = new Mailgun('key-41616099');
  $domain = "sandbox614b.mailgun.org";
  
  $from = 'Demo contact form &lt;test@example.com &gt;';
  $to = 'Demo contact form &lt;test@example.com&gt;';
  $name = $_POST['name'];
  $subject =  $_POST['subject'];
  $message = $_POST['message'];
  
  $fields = array('name' =&gt; 'Name', 'email' =&gt; 'Email', 'phone' =&gt; 'Phone', 'subject' =&gt; 'Subject', 'message' =&gt; 'Message'); 
  
  $okMessage = 'Contact form successfully submitted. Thank you, I will get back to you soon!';
  
  $errorMessage = 'There was an error while submitting the form. Please try again later';
  
  // if you are not debugging and don't need error reporting, turn this off by error_reporting(0);
  error_reporting(E_ALL &amp; ~E_NOTICE);
  try
  {
      if(count($_POST) == 0) throw new \Exception('Form is empty');
  
      $content = "You have a new message from your contact form";
      foreach ($_POST as $key =&gt; $value) 
      {
          if (isset($fields[$key]))
              {
              $content .= "$fields[$key]: $value\n";
  
      //recaptcha-response
      $recaptcha_secret = "6LfK7ygUAAAAAIYzE6mbqdxbmuroi4gJWqdIpmBu";
      $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$recaptcha_secret."&amp;response=".$_POST['g-recaptcha-response']);
      $response = json_decode($response, true);
  
  # Make the call to the client.
  $result = $mgClient-&gt;sendMessage("$domain",
            array('from'    =&gt; 'Mailgun Sandbox &lt;postmaster@sandbox614b.mailgun.org&gt;',
                  'to'      =&gt; 'Nami &lt;nami19@gmail.com&gt;',
                  'subject' =&gt; 'Hello Nami',
                  'text'    =&gt; 'Congratulations Nami, you just sent an email with Mailgun!  You are truly awesome! '));
  
        echo "Form Submit Successfully.";
          } else {
          echo "You are a robot";
          }
      }
  }
     catch (\Exception $e)
  {
      $responseArray = array('type' =&gt; 'danger', 'message' =&gt; $errorMessage);
  }
  
  ?&gt;
  </code></pre>
  
  <p>What could I be possibly doing wrong?</p>