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
-
Archives
- October 2023 (1)
- October 2022 (2)
- October 2021 (2)
- February 2021 (5)
- January 2021 (4)
- December 2020 (3)
- October 2020 (2)
- August 2020 (1)
- June 2020 (1)
- April 2020 (1)
- February 2020 (1)
- December 2019 (7)
-
Categories
-
RSS
Entries RSS
Comments RSS