I responded in the email but was not sure if you received it.
I have tried this many years ago, so feel free to see if it still works.
I found this easy-to-implement BPML code for attaching the PrimaryDocument to an SMTP Send.
Normally the Primary Document becomes the body of the email. With this it should be the attachment.
‹operation name="Get Document Information Service"›
‹participant name="GetDocumentInfoService"/›
‹output message="GetDocumentInfoServiceTypeInputMessage"›
‹assign to="DocumentContentSubType"›Text; name="ResponseReport.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"›smtp.corp.dom‹/assign›
‹assign to="xport-smtp-mailport"›25‹/assign›
‹assign to="xport-smtp-mailfrom" from="sci-get-property('pge_specific.properties',concat(string(/ProcessData/EmailPrefix),'_Mailfrom'))"›‹/assign›
‹assign to="xport-smtp-mailto" from="sci-get-property('pge_specific.properties',concat(string(/ProcessData/EmailPrefix),'_Mailto'))"›‹/assign›
‹assign to="xport-smtp-mailsubject" from="string(SendMail/subject)"›‹/assign›
‹assign to="." from="*"›‹/assign›
‹/output›
‹input message="inmsg"›
‹assign to="." from="*"›‹/assign›
‹/input›
‹/operation›
------------------------------
Regards,
Satya Venkataraman
Senior Solution Architect
B2B Integration Services & Partner Engagement Solutions
IBM AI Applications
(804) 837-6569
satya@ibm.com------------------------------
Original Message:
Sent: Sun March 13, 2022 09:49 AM
From: Len Sasso
Subject: Send an email with an attachment?
Is it possible to send an email with an attachment?
If so, could you please explain how?
Thank You and Please Be Safe!
Len Sasso
Systems Administrator Senior
CSRA, A General Dynamics Information Technology Company
327 Columbia TPKE
Rensselaer, NY 12144
TEAM: Together Everyone Achieves More
Office Hours: M-F 7 AM - 3:45 PM
Vacation:
Phone: (518) 257-4209
Cell: (518) 894-0879
Fax: (518) 257-4300
#DataExchange
#filetransfer