title: Multiple BCC recipients in gmailapp (google apps script)
body: <p>I would like to send an email to multiple bcc recipents using gmailapp in google apps script.</p>
  
  <p>The following didn't work. I tested it. it seems that only the second recipient bcc2 will get the email. I couldn't find the answer in Google's documents (<a href="https://developers.google.com/apps-script/reference/mail/mail-app" rel="nofollow">https://developers.google.com/apps-script/reference/mail/mail-app</a>)</p>
  
  <p>var bcc = "abc@example.com";</p>
  
  <p>var bcc2 = "xyz@example.com";</p>
  
  <p>GmailApp.sendEmail("",Email_Title, "", {'bcc':bcc, 'bcc':bcc2, htmlBody: Msg });</p>
  
  <hr>
  
  <p>I can get around this by using a for loop</p>
  
  <p>var bcc = ["abc@example.com", "xyz@example.com"];</p>
  
  <p>for (var i = 0; i &lt; bcc.length; i++){}</p>
  
  <p>But this is not ideal to me, as I would find multiple sent email in the sent box, rather than one sent email, with multiple bcc recipients </p>