Managed File Transfer

 View Only
  • 1.  Send an email with an attachment?

    Posted Sun March 13, 2022 09:49 AM

    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


  • 2.  RE: Send an email with an attachment?

    Posted Mon March 14, 2022 01:24 AM
    Hi Len Sasso,

    I hope these articles may help you. How to send email with body including an attachment using MIME service in IBM Sterling B2B Integrator(SBI) ?
    Ibm remove preview
    How to send email with body including an attachment using MIME service in IBM Sterling B2B Integrator(SBI) ?
    In IBM Sterling B2B Integrator (SBI), how to send email with body including an attachment using MIME service?
    View this on Ibm >


    How to send an E-Mail with attachments taken from Process Area (SCI87048)
    Ibm remove preview
    How to send an E-Mail with attachments taken from Process Area (SCI87048)
    How to send an E-Mail with attachments taken from Process Area (SCI87048)
    View this on Ibm >


    ------------------------------
    BHARAT BALOTHIA
    ------------------------------



  • 3.  RE: Send an email with an attachment?

    Posted Tue March 15, 2022 07:14 AM
    Good Morning, BHARAT!

    Thank you for the links, however I have found a solution that does not require the use of IBM Sterling B2B Integrator.

    Again, thank you for all your help.



    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

     
     





  • 4.  RE: Send an email with an attachment?

    Posted Mon March 14, 2022 01:32 AM

    Hi Len,

    You may want to try this

    https://www.ibm.com/support/pages/how-use-smtp-adapter-send-document-only-attachment-not-body-email

    Regards,

    Girish



    ------------------------------
    Girish Venkatesh
    ------------------------------



  • 5.  RE: Send an email with an attachment?

    Posted Mon March 14, 2022 11:29 AM
    I did this many years ago and not tried it recently.

    Please see if this still works
    BPML code for attaching the PrimaryDocument to an SMTP Send.  Normally the PriDoc becomes the body of the email.  With this, it becomes 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 
    Certified IT Level 2 Specialist 
    Certifications/Badges: Acclaim  









  • 6.  RE: Send an email with an attachment?

    Posted Mon March 14, 2022 03:13 PM
    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
    ------------------------------



  • 7.  RE: Send an email with an attachment?

    Posted Fri March 24, 2023 04:03 PM

    Hello Everybody, 

    I need a little help with SMTP Send Adapter, 

    I could send a mail with or without an attachment, but now I am getting the below error. Can somebody please help me to increase the size limit for a document? 

    java.rmi.RemoteException: B2BMailSMTPImpl, mail cannot be sent because of an exception received from the server; nested exception is: 
    	com.sun.mail.smtp.SMTPSendFailedException: 552 5.3.4 Error: message file too big

    "Document size is 39233538 Bytes, it exceeds inline viewing limit, currently set to 1024000 Bytes"

    Thank you.



    ------------------------------
    RANA RIZWAN
    ------------------------------



  • 8.  RE: Send an email with an attachment?

    Posted Sat March 25, 2023 01:55 PM

    Hi Rana,

    The error is due to the size restriction set at the Mail Server. 

    exception received from the server

    Regarding "Document size is 39233538 Bytes, it exceeds inline viewing limit, currently set to 1024000 Bytes". This is not an error, instead a max default display size is set, for performance reasons, to 1000KB, in the ui.properties (ui.properties.in) - Large document exceeds inline viewing limit, which is currently set to 1024000 Bytes (SCI70129) (ibm.com)

    Regards,

    Girish



    ------------------------------
    Girish Venkatesh
    ------------------------------