IBM Support

How to use the SMTP adapter to send a document only as an attachment, not in the body of the email

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>



[{"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

PRI12328

Product Synonym

IBM Sterling B2B Integrator - All Releases

Document Information

Modified date:
16 June 2018

UID

swg21537206