title: Sending email to a gmail contact list using a Google App Script
body: <p>Picked up some code from this answer:</p>
  
  <p><a href="https://stackoverflow.com/questions/45538689/email-a-group-and-not-individual-addresses-with-google-app-script/52971918#52971918">Email a group and not individual addresses with Google App Script</a></p>
  
  <p>Seems to be working but I'm having this problem with the code.  When I substitute emails for the send line... I get the following:   </p>
  
  <pre><code>Message details
  Invalid email: [L&lt;?&gt;;@11773e2
  </code></pre>
  
  <p>However, the Browser box msg for the email_list has the proper emails.</p>
  
  <p>The code is as follows:</p>
  
  <pre><code>var email_list = []; 
  var contacts = ContactsApp.getContactGroup('TESTING').getContacts();
  
  Browser.msgBox(contacts); 
  
  for(var i in contacts){
    email_list.push(contacts[i].getPrimaryEmail());
  }
  
  Browser.msgBox(email_list);
  MailApp.sendEmail({
    to: email_list, 
    subject: "SUBJECT",
    htmlBody: html2,
    inlineImages:emailImages});
  }
  </code></pre>