Question & Answer
Question
How to use the SMTP adapter to send a document only as an attachment, not in the body of the email
Cause
Answer
Here is a sample process which shows how the GetDocumentInfo service and the SMTP Send Adapter should be configured:
<process name="TestMailAttach">
<sequence name="Sequence Start">
<operation name="Get Document Information Service">
<participant name="GetDocumentInfoService"/>
<output message="GetDocumentInfoServiceTypeInputMessage">
<assign to="DocumentContentSubType">EDI-X12; name="myDocSubType.txt"</assign>
<assign to="DocumentContentType">Application</assign>
<assign to="." from="*"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<operation name="SMTP Send Adapter">
<participant name="SMTP_SEND_ADAPTER"/>
<output message="SMTP_SEND_ADAPTERInputMessage">
<assign to="b2b-raw-message">false</assign>
<assign to="xport-smtp-mailhost">your.mailhost</assign>
<assign to="xport-smtp-mailsubject">Testing</assign>
<assign to="xport-smtp-mailto">test@example.com</assign>
<assign to="." from="*"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</process>
Historical Number
PRI12328
Product Synonym
IBM Sterling B2B Integrator - All Releases
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21537206