Skip to content Skip to sidebar Skip to footer

Gmail App Script Add Bcc From Spreadsheet

I have created this code to send a template email from Google Spreadsheet. I really need to BCC another recipient. I have checked out Class Gmail App. It didn't quite make sense to

Solution 1:

Check the version of sendEmail(recipient, subject, body, options) method with optional arguments, which can include bcc.

Class GmailApp also has a similar method sendEmail(recipient, subject, body, options), which can include bcc.

Example:

...
var options = {
   bcc: 'bccmail0@domain.ext, bccmail1@domain.ext'
};
MailApp.sendEmail(emailAddress, subject, message, options);
...

Post a Comment for "Gmail App Script Add Bcc From Spreadsheet"