title: Calling: GetRespondentEmail Specific
body: <p>The following code is used to send an email to the respondent of a google form. The <code>onsubmit</code> call is from the spreadsheet that stores the responses. </p>
  
  <p>I am not sure how to get the forms ID to use the solution given in several other places. Basically I just need to know how to call the <code>getRespondentEmail()</code>. I've tried calling it using <code>FormApp.getActive()</code> but I read that only works when you are working in the form it's self.</p>
  
  <p>If you want to offer a solution that requires using the form ID, an explanation of how to get the ID would be great.</p>
  
  <pre><code>var GetUserEmail = getRespondentEmail().
  
  var subject = "Skiver Production Report Successfully Submitted";
  var textbody = "You have successfully submitted a Skiver Production Report. Do not reply to this email as it is not monitored.";
  var message = "You have succesfully submitted a Skiver Production Report. Do not reply to this email as it is unmoinitored." ;
  
  var cc = "techlab@worldwidefoam.com";
  var sendername = "Quality Function";
  
  GmailApp.sendEmail("bob@notArealemail.com", subject, textbody, {
      cc: cc,
      name: sendername,
      htmlBody: message
  });
  </code></pre>