【问题标题】:cfmailparam disposition filename does not work in outlookcfmailparam 配置文件名在 Outlook 中不起作用
【发布时间】:2016-02-08 03:31:44
【问题描述】:

我有一个非常简单的示例,使用 Coldfusion 11 cfmail 标签将图像作为附件发送。

<cfmail to="example@domain.com" from="example@domain.com" subject="Test" type="html">
<cfmailparam
file="www.example.com/image.png"
disposition="attachment; filename=""test.png""">
</cfmail>

我希望在收件人电子邮件客户端中查看附件时将其命名为“test.png”。

当我在 Gmail 中收到电子邮件时,它工作正常,但是 Outlook 2013(和 Office 365 网络客户端)保留了“image.png”附件名称。

我是否正确使用了“处置”属性?

【问题讨论】:

    标签: email coldfusion outlook coldfusion-11 cfmail


    【解决方案1】:

    如果disposition 不适合您,请尝试结合使用filecontent

    <cfmailparam
        file="test.png"
        content="#fileRead( 'image.png' )#" >
    

    More details here.

    【讨论】:

    • 我希望不要先读入文件,但这确实有效。谢谢。
    猜你喜欢
    • 2021-06-06
    • 1970-01-01
    • 2011-05-10
    • 1970-01-01
    • 2021-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多