为什么我由BizTalk发送的电子邮件附件"body.csv"在OUTLOOK 2016中? [英] Why is the email atachment i sent by BizTalk "body.csv" in OUTLOOK 2016?
问题描述
我创建了一个简单的界面来发送电子邮件.我已通过
I created a simple interface that send an email. I have set the filename by
msg_out_renamed(MIME.FileName) = FileName;
这在我的Outlook 2013中效果很好,显示为"client_inv_20160909090658.csv"
.
This works fine in my outlook 2013, it shows as "client_inv_20160909090658.csv"
.
但是使用Outlook 2016的收件人将其显示为" body.csv ".当他决定保存附件时,另存为"对话框中的文件名为"client_inv_20160909090658.csv"
.
But the receipient who uses Outlook 2016 has it show up as "body.csv". When he decides to save the attachment the filename in the save as dialog is "client_inv_20160909090658.csv"
.
为什么会发生这种情况,有什么办法可以防止这种情况发生?
Why does this happen and is there a way i can prevent this from happening?
推荐答案
为附件的部分更改上下文属性 MIME.FileName >也是如此.
Change the context property MIME.FileName for the part of your attachment as well.
在业务流程中:(请注意.part" 代码)
In an orchestration: (note the ".part" code)
Message.part(MIME.FileName) = "NewFileName.txt";
在管道组件中:(请注意.BodyPart" 代码)
In a pipeline component: (note the ".BodyPart" code)
pInMsg.BodyPart.PartProperties.Write("FileName", "http://schemas.microsoft.com/BizTalk/2003/mime-properties", "NewFileName.txt");
不幸的是,我们无法通过BizTalk控制台中的消息详细信息"屏幕看到这些上下文属性.附加调试器以检查这些值.
Unfortunately we cannot see these context properties via the Message details screen in the BizTalk console. Attach a debugger to inspect these values.
这篇关于为什么我由BizTalk发送的电子邮件附件"body.csv"在OUTLOOK 2016中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!