Ravindar, Integrations with Mulesoft & BizTalk

Just another Integration blog

set email recipent in orchestration for smtp port

The recipient is configurable as the URI-address of the adapter as an property of the dynamic sending port itself in the “Expression”-shape:

portSend(Microsoft.XLANGs.BaseTypes.Address)=
“mailto:abc@sample.com”

If you want set the recipient as the content of a message, a simple way is to use XPath like in this example:

portSend(Microsoft.XLANGs.BaseTypes.Address) =
“mailto:” +
(System.String) xpath(msgSend, “string(/*[local-name()=’Root’ and namespace-uri()=’http://SampleNamespace’%5D/*%5Blocal-name()=’To’ and namespace-uri()=”])”);

for a XML-document like

blabla
abc@sample.com

November 15, 2010 Posted by | Biztalk Server | Leave a comment