[Google Apps Script] Send an email with CC and BCC recipients

Created on November 30, 2026

Use the cc and bcc fields in the fourth argument to MailApp.sendEmail(). For multiple addresses in either field, use a comma-separated string. Replace the example addresses before running the function.

function main() {
  MailApp.sendEmail("tom@example.com", "Meeting notes", "Here are the notes.", {
    cc: "alice@example.com",
    bcc: "bob@example.com",
  });
}
Google Apps Script