I created a simple interface that send an email. I have set the filename by
msg_out_renamed(MIME.FileName) = FileName;
This works fine in my o
Change the context property MIME.FileName for the part of your attachment as well.
In an orchestration: (note the ".part" code)
Message.part(MIME.FileName) = "NewFileName.txt";
In a pipeline component: (note the ".BodyPart" code)
pInMsg.BodyPart.PartProperties.Write("FileName", "http://schemas.microsoft.com/BizTalk/2003/mime-properties", "NewFileName.txt");
Unfortunately we cannot see these context properties via the Message details screen in the BizTalk console. Attach a debugger to inspect these values.