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?
Asked
Active
Viewed 140 times
0
-
Could you show the code with which you trigger the extension? – JayCodist Aug 12 '20 at 09:05
1 Answers
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
-
-
@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
-