Ravindar, Biztalk Developer and Administrator

Just another BizTalk 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

Advertisements

November 15, 2010 - Posted by | Biztalk Server

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: