Integrating Integrators – BizTalk, Windows Azure, Windows Workflow, and Beyond

Re: Sending a simple text message on Email Body

BizTalk 2010

This group is for all content related to BizTalk Server 2010. This includes a forum and samples.

Sending a simple text message on Email Body

Answered (Verified) This question is answered

Hi everyone,

 

i'm currently doing my master thesis in Biztalk and i was trying to get it to send a email with a simple text in the body instead of inside a XML node, but i can't manage to work it out. The main idea is that i receive a XML file and i have to use 2 node values from that file to write my string that will be sent on the email body message. For example:

 

- Let's asume that i have the following XML:

<ns0:Message xmlns:ns0="http://...">
    <SenderID>123</SenderID>
    <ReceiverID>456</ReceiverID>
    <RequestDateTimeStamp>1999-05-31T13:20:00.000-05:00</RequestDateTimeStamp>
    <RequestMessageVersion>1.0</RequestMessageVersion>
    <TransactionType>Booking</TransactionType>
    <TransactionVersion>1.0</TransactionVersion>
    <TransactionStatus>Accepted</TransactionStatus>
</ns0:Message>

 

What i wanna do is send an email with a single string in the mesage body saying something like: "The booking made by sender 123  was Accepted", where the underlined words are the values of the nodes SenderID and TransactionStatus on the XML.

I've read a bit about the RawString code but i'm not sure if it help me to do what i need. Furthermore, since i'm quite the noob on Biztalk, i've read that this type is not in the SDK, so you have to build it yourself, compile the class as a separate assembly, GAC it, and add its reference to your project. But i have no idea of how to do all that or even where to begin. Can anyone help me out please?

 

Best regards,

Pedro Miranda

Verified Answer
All Replies
Page 1 of 1 (5 items)