Sending e-mails with attachments in Biztalk 2006

Home Page Forums BizTalk 2004 – BizTalk 2010 Sending e-mails with attachments in Biztalk 2006

Viewing 1 reply thread
  • Author
    Posts
    • #14481

      I want to receive files with some meta-data in Biztalk 2006 and send them via e-mail using the SMTP adapter and a dinamic port. I have read some information about attaching local files but how can I attach a file that I have inside a message as an anytype record?.

    • #14482

      The simplest way is to use an orchestration, accept an untyped message (System.Xml.XmlDocument), send this message setting the [b:90e299c346]Microsoft.XLANGs.BaseTypes.Address[/b:90e299c346] property on the send port.

      You will need a custom pipeline using the MIME/SMIME encoder and set the [b:90e299c346]BodyAsAttachment[/b:90e299c346] property on this component

      If yoiu wish to get more complicated and add a body to the email then I suggest you read the following Biztalk 2004 docs – all the info here is still relavent for Biztalk 2006.

      [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdk/htm/ebiz_prog_email_wgxr.asp[/url]

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