title: Sending emails twice with MailApp.sendEmail
body: <p>I have created a google apps script to automate emails once a Google Form is submitted. The script is quite simple:</p>
  
  <pre><code>function AutoConfirmation(e){
    var theName = e.values[1];
    var theEmail = e.values[2];
    var theSubject= e.values[3];
    var myEmail = "myemail@gmail.com";
    var theMessage = e.values[4];
    var subject = "Contact form response – " +  theSubject;
    var message = theMessage;
    MailApp.sendEmail (myEmail, subject,message);
  }
  </code></pre>
  
  <p>However, fo some reason I can't figure out, every time a form is submitted I get two instant emails:</p>
  
  <ol>
  <li>Has the data submitted (all works as expected) </li>
  <li>Is empty (e.g. subject is "Contact form response –")</li>
  </ol>
  
  <p>I even started from scratch in a different Google account I have and the same issue happens.</p>
  
  <p>Appreciate any suggestions! </p>