title: Phonegap form doesn't send email only in App (works on browser)
body: <p><strong>Here is my project</strong>: I'm currently developping a little application with Phonegap including a form. This form receive differents values (email, name, tel,...) and send me an email on submit.<br>
  <strong>And here is my problem</strong>: everything is working on differents browsers (from my computer, differents phones,...) BUT when I want to use the application ".apk", everything is working (I have the confirmation message in App) but I don't receive an email...</p>
  
  <p>So, here is my differents files.</p>
  
  <p><strong>HTML</strong> (simplified):</p>
  
  <pre><code>&lt;head&gt;
      &lt;!-- Differents lines for charset, css and title --&gt;
      &lt;script src="js/jquery-3.1.1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(document).bind("mobileinit", function() {
              $.support.cors = true;
              $.mobile.allowCrossDomainPages = true;
          });
      &lt;/script&gt;
  &lt;/head&gt;
  
  ...
  
  &lt;form id="atelform" return verifForm(this);" &gt;
      &lt;div id="group-nom" class="group"&gt;
          &lt;input id="nom" name="nom" type="text" placeholder="Nom" required&gt;
          &lt;span class="bar"&gt;&lt;/span&gt;
      &lt;/div&gt;
  
      &lt;div class="group"&gt;
          &lt;input id="prenom" name="prenom" type="text" placeholder="Prénom" required&gt;
          &lt;span class="bar"&gt;&lt;/span&gt;
      &lt;/div&gt;
  
      &lt;div class="group"&gt;
          &lt;input id="envoyer" value="Faire ma demande" type="submit"&gt;
          &lt;p id="contact-message"&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong>:</p>
  
  <pre><code>$(document).ready(function() {
      // On submit
      $("#atelform").submit(function() {
          // Values are sending to the PHP file
          $.post("http://my-domain.com/app_mail.php", $("#atelform").serialize());
          return false;
      });
  });
  </code></pre>
  
  <p><strong>PHP</strong>:</p>
  
  <pre><code>header('Access-Control-Allow-Origin: *');
  require_once('phpmailer/PHPMailerAutoload.php');
  
  // Variables
  $nom = $_POST['nom'];
  $prenom = $_POST['prenom'];
  $to = "me@email.com";
  $sujet = "From app";
  $message = "Mister &lt;strong&gt;".$prenom." ".$nom."&lt;/strong&gt; is awesome!.\r\n\r\n";
  
  $mail = new PHPMailer(); // create a new object
  $mail-&gt;SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
  $mail-&gt;SMTPAuth = true; // authentication enabled
  $mail-&gt;SMTPSecure = 'tls'; // secure transfer enabled REQUIRED for Gmail
  $mail-&gt;Host = "my host";
  $mail-&gt;Port = 465; // or 587
  $mail-&gt;IsHTML(true);
  $mail-&gt;CharSet = 'UTF-8';
  $mail-&gt;Username = $to;
  $mail-&gt;Password = "my-password";
  $mail-&gt;SetFrom($email);
  $mail-&gt;Subject = $sujet;
  $mail-&gt;Body = $message;
  $mail-&gt;AddAddress($to);
  
  if (!$mail-&gt;send()) {
      echo "Mailer Error: " . $mail-&gt;ErrorInfo;
  } else {
      echo "Sent!";
  }
  </code></pre>
  
  <p>And finally my <strong>config.xml</strong>:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="my-id" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" versionCode = "10"&gt;
      &lt;name&gt;My App&lt;/name&gt;
      &lt;description&gt;
          My awesome description!
      &lt;/description&gt;
      &lt;author email="me@email.com" href="http://my-website.com"&gt;
          Me
      &lt;/author&gt;
      &lt;platform name="android" /&gt;
      &lt;content src="index.html" /&gt;
      &lt;preference name="InAppBrowserStorageEnabled" value="true" /&gt;
      &lt;access origin="*" /&gt;
      &lt;icon src="www/img/icon.png" /&gt;
  &lt;/widget&gt;
  </code></pre>