0

I use the Firebase Trigger Email extension to send emails. This extension allows to send one email to multiple addresses. When I do this, everything goes well, but the recipient can see all the addresses that are also receiving the email. How do I hide it?

1 Answers1

0

As explained here in the Extension's detailed doc, you can use the bcc field instead of the to one.

To do so, the document you create in the "Email documents collection" (as named in the configuration screen), shall have a bcc field instead of a to one, as follows:

bcc: ['someone1@example.com', 'someone2@example.com', 'someone3@example.com'],
message: {
  subject: 'Hello from Firebase!',
  text: 'This is the plaintext section of the email body.',
  html: 'This is the <code>HTML</code> section of the email body.',
}
Renaud Tarnec
  • 79,263
  • 10
  • 95
  • 121
  • I think that's the opposite of what he's trying to achieve – JayCodist Aug 12 '20 at 09:08
  • @JayCodist Well, from the following sentence in the question ("the recipient can see all the addresses that are also receiving the email. How do I hide it?") I understand that the OP wants that the recipients don't see the addresses of the other recipients. Using bcc is the solution in this case, IMHO. – Renaud Tarnec Aug 12 '20 at 09:25
  • OK, I get it now. Sorry – JayCodist Aug 12 '20 at 09:27