Change BizTalk Message Body Part Attachment name

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Change BizTalk Message Body Part Attachment name

Viewing 1 reply thread
  • Author
    Posts
    • #23342

      Dear frends ,

      Today I face with some problem for which currently do not know exact answer.

      Namely, I need to send one flat file (CSV format) from BizTalk  in mail.

      Frist I chosee  SMTP as  a type and then in Configuration I chosee option Attach only body part but now have problem with the name of attached file.

      The name of attached file is “body” , how I can change that name to “order.csv”.

       

      Thanks in advance.

    • #23343

      Hi,

       

          You should use the context property MIME.FileName in a Message Assignment shape like this:

      outmsg(MIME.FileName) = “order.csv”;

          Also, you may need to build a custom Send Pipeline and add a MIME/SMIME Encoder component in the Encode stage, and use this custom pipeline as the Send pipeline in the properties of your SMTP Send Port (in BizTalk Administration Console).

       

          I hope this information helps.

       

         Daniel.

       

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.