Send HTML Email by using SMTP adapter RRS feed

  • Question

  • I am wondering how I can send a HTML format email from BizTalk by using SMTP adapter?
    I think SMTP adpater only can do text format.
    For HTML format, I need to create the html contents in System.String in the Orchestration and pass to the send shape.
    But what I got is something like:
    <?xml version="1.0" encoding="utf-8" ?>
    <string>&lt;html xmlns:var="" xmlns:ns0="http://import_report_outbound_v2"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:userCSharp=""&gt;&lt;header /&gt;&lt;body&gt;&lt;p&gt;
              Kuehne-Nagel has returned an error message for the purchase order we uploaded to them, below is the details of the errors
            &lt;/p&gt;&lt;br /&gt;&lt;/body&gt;&lt;/html&gt;</string>

    Can someone help, please?
    Tuesday, May 5, 2009 10:45 PM

All replies

  • I'm not sure if this is the most efficient method.
    What I recently did was ensure the message is the final html formatted message. I set the ContentType to 'text/html' and set the sent port SMTP Transport property Compose->Email body to 'BizTalk message body part'.

    I hope this helps a little bit.
    • Proposed as answer by edhickey Friday, May 22, 2009 8:26 PM
    Monday, May 18, 2009 12:06 PM