gpt4 book ai didi

file - 如何通过 URL 将文件附加到电子邮件?

转载 作者:行者123 更新时间:2023-12-02 08:53:35 25 4
gpt4 key购买 nike

我正在使用 cfmail 标签发送电子邮件,并尝试从 URL 附加 PDF 文件:

<cfmail to="<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a676f4a67736e65676b636424696567" rel="noreferrer noopener nofollow">[email protected]</a>" from="<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="96eff9e3d6eff9e3e4f2f9fbf7fff8b8f5f9fb" rel="noreferrer noopener nofollow">[email protected]</a>" subject="Subject" type="html">
<cfmailparam file="http://myfilelocation/pdfFile.pdf">
Body of the email
</cfmail>

但是,这不起作用。如果没有 cfmailparam 标签,电子邮件发送成功。如果我访问 http://myfilelocation/pdffile.pdf,我会看到我尝试附加的 PDF 文档。难道我做错了什么?如何通过 URL 将 PDF 文档附加到电子邮件?

最佳答案

如果您要发送 HTML 电子邮件,为什么不直接链接到 PDF?这使得电子邮件变得更小,并且即使在 PDF 发出后您也有机会更新它。

关于file - 如何通过 URL 将文件附加到电子邮件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6650735/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com