0

I am calling (iteratively) values in an object: each key is an integer and each value is a list of emails. I would like to call the list of emails as one continuos string, as in

"[email protected], [email protected], [email protected]"

rather than

[[email protected], [email protected], [email protected]]

so that I can use the MailApp.sendEmail class in Google Apps Script. How might I convert/correctly call the list of emails so that they are recognized by the MailApp Class?

1 Answer 1

1

var arr = ['[email protected]', '[email protected]', '[email protected]']

var str = arr.join(', ');

Now, str = '[email protected], [email protected], [email protected]';

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.