问题描述
我使用Firebase触发电子邮件扩展来发送电子邮件。此扩展名允许将一封电子邮件发送到多个地址。当我这样做时,一切都会顺利进行,但是收件人可以看到也正在接收电子邮件的所有地址。我怎么藏起来?
解决方法
如扩展程序详细文档中的here所述,您可以使用bcc
字段代替to
字段。
为此,您在“电子邮件文档集合”(在配置屏幕中命名)中创建的文档应具有bcc
字段,而不是to
字段,如下所示:
bcc: ['[email protected]','[email protected]','[email protected]'],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.',}