title: Bad Value, Constant Error
body: <p>I am a brand new coder, and I want my code to work with this process:</p>
  
  <p>I fill out a form that leads to a spreadsheet
  I want that spreadsheet to check certain values in another spreadsheet to see if they match (there are lots of values in that spreadsheet and I want the program to run through the whole column)
  If they match, I want to have an email sent to me with the matching person's name, which is displayed in the same row in the spreadsheet I will be comparing to. </p>
  
  <p>My not working code:</p>
  
  <pre><code> function myFunction(e) {
    var genderSheet1 = e.values[19];
    var genderSheet2 = SpreadsheetApp.openById("To Populate");
    if (genderSheet1===genderSheet2) {
      var userName = e.values[1];
      var userEmail = "email";
      var subject = "WORKER FOUND?";
      var message = "Dear " + userName + "," + 
        "\n\n\nThis is the finder" +
      MailApp.sendEmail(userEmail, subject, message, {attachments:file.next().getBlob()});
    }
  }
  </code></pre>
  
  <p>Please help!</p>