Sending a Text E-Mail Message from an Orchestration
Sending a text e-mail message from an orchestration requires more work than simply attaching an InfoPath form. Sending a message of type System.String will not work, because the string gets formatted as an XML document in the message, which is not your desired solution.
To send text in an e-mail message, you must use a special type of string, a RawString, in combination with a pipeline containing the MIME/SMIME Encoder pipeline component. The code to implement the RawString type is custom code that must be built, placed in the global assembly cache, and referenced from your assembly. For the RawString code, see Source Code for Custom Formatting of E-Mail Messages.
Using the RawString code, you can construct a message using the following code in the Expression Editor of Orchestration Designer:
RawOutMsg = new Microsoft.XLANGs.CustomFormattersSDK.RawString( “e-mail body goes here” );
SP_Acknowledgement(Microsoft.XLANGs.BaseTypes.Address) = “mailto:MyManager@MyCompany.com”;
msgAcknowledgement(SMTP.Subject) = “Expense report submission confirmation”;
Where RawOutMsg is declared as a message of type Microsoft.XLANGs.CustomFormattersSDK.RawString.
No comments yet.
-
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
Leave a comment