title: How do I send email to multiple recipients in google app script
body: <p>I am unable to send email through google script to multiply addresses </p>
  
  <p>Tried with GmailApp.sendEmail,MailApp.SendEmail, var recipient = testmail + chemAmail ;.</p>
  
  <pre><code>  var testmail     = "example1@gmail.com" ;
    var chemAmail    = "example2@gmail.com" ;
  
    var body = "Hi,&lt;br&gt;&lt;br&gt;" +
               "This is a Quality Alert.Please brief the required people and submit the Briefing Record EForm when it is completed." + "&lt;br&gt;&lt;br&gt;" +
               "The details are stated below :&lt;br&gt;" +
               "Customer: " + customer + "&lt;br&gt;" +
               "Part Number: " + part + "&lt;br&gt;" +
               "S Number: " + s + "&lt;br&gt;" +
               "ID Number: " + id + "&lt;br&gt;" +
               "Defect : " + defect + "&lt;br&gt;" +
               "Description : " + desc + "&lt;br&gt;" +
               "Reject Photos : " + reject + "&lt;br&gt;" +
               "Okay Photos : " + ok + "&lt;br&gt;&lt;br&gt;" +
               "Please complete it as soon as possible." + "&lt;br&gt;&lt;br&gt;" +
               "Thanks." ;
  
      // Sends if chemA is ticked (Conditions for email to be sent)
      if(chemA == '✔')
      {
        var recipient = testmail , chemAmail;
        var subject = "Quality Alert for Chem A";
      }
  
  GmailApp.sendEmail(recipient, subject, " ",{htmlBody: body});  
  </code></pre>
  
  <p>I can send it to testmail only. I want to be able to send to multiple email addresses.</p>