E-mail attachment

Home Page Forums BizTalk 2004 – BizTalk 2010 E-mail attachment

Viewing 1 reply thread
  • Author
    Posts
    • #13335

      To send file attachments you use multi-part messages and the MIME/SMIME encoder pipeline component.

      You can construct your multipart message in an orchestration ensuring the html formatted message part is the body part. All other message parts are then sent as attachments.

      Where is your image file, is it in the orchestration or is a fixed image file on disk.

    • #13336

      You will need a C#/VB class that has a static method that is passed a file name and returns an XLANG MessagePart
      In the orchestration:
      MultipartMessage.Attachment = MyNamespace.MyClass.GetFileAsMessagePart(\”C:\\temp\\image.jpg\”);

      Probably best to make the filename a configurable parameter

      Is the image file is referenced in an img element of the Html?

      This could prove somewhat trickier

      An alternative would be to publish the image file on a public internet site and add a Url reference in your Html
      e.g.
      <img src=\”http://www.public.com/images/image.jpg\”/>

      • #13337

        I want to send an e-mail message (using an xslt-transform to html-format it) with an attached image-file. The first part is done, but how do I attach a file to the e-mail?

        • #13338

          It’s a fixed file that i want to attach to all e-mails. Is there any good links on this?

          • #13339

            I’ll be passing the file path as an xml-elemement, so that’s not a problem.

            [quote:a57d760190]You will need a C#/VB class that has a static method that is passed a file name and returns an XLANG MessagePart
            In the orchestration:
            MultipartMessage.Attachment = MyNamespace.MyClass.GetFileAsMessagePart(\”C:\\temp\\image.jpg\”); [/quote:a57d760190]

            Not sure what you mean here. How would a class like that look like?

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