我正在使用 firebase 的 firestore-send-email 扩展来发送带有 pdf 附件的电子邮件,但我遇到了意外行为。
唯一一次不工作是当我使用handlebars指定模板文档中pdf的url
path
,当url来自云存储。例如:
模板:
subject: "Subject...",
html: "This url is accessible in the body but not in the pdf attachment: {{url}}",
attachments: [
{
filename: {{filename}},
path: {{url}},
}
]
案例它确实有效:
attachments: [
{
filename: {{filename}},
path: "https://firebasestorage.googleapis.com/v0/b/..."
}
]
attachments: [
{
filename: testFile.pdf,
path: {{url}} // this url is: https://www.africau.edu/images/default/sample.pdf
}
]
是否有一些阻止功能不允许云存储 url 专门作为电子邮件中的附件?