ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Sending Multiple attachments via SNDDST

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sending Multiple attachments via SNDDST

    Respected Forum Members,

    Below are just my 2 cents....

    We all are aware that SNDDST will not support sending multiple attachments via mail, to achieve this we have to use the QTMMSENDMAIL API.

    As we all know its take some time to get acquainted with this API.

    While doing a build for a requirement I got stuck up due to the API as I was having no idea about that and it might take some time to get familiar to this. So, to achieve my purpose I did a small thing, I put the files which needs to be emailed in a ZIP file and used SNDDST to send the same to Users.

    For ZIPing you can use the below QSHELL command:

    For single file:
    jar -cfM /QDLS/TEST.ZIP /CHKINDOC/DOC.PDF

    For multiple files:
    jar -cfM /QDLS/TEST.ZIP /CHKINDOC/DOC.PDF /CHKINDOC/DOC1.PDF

    Once the ZIP is ready you can use SNDDST to send it.

    I donot know whether this is the most feasible solution but my Clients accepted that. Thought of sharing this with you guys. It might help.

    Waiting for all you experts for your feedback!!!!

    NB: I am on V6R1.

    Thanks and Regards,
    Rudra

  • #2
    Re: Sending Multiple attachments via SNDDST

    why reinvent the wheel just download MMAIL from easy400.net. it has commands that wrap the API & allows you to send multiple stream files, etc.
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: Sending Multiple attachments via SNDDST

      Rudra,

      Nice job...Its alway nice to learn new things and get better at old ones!

      I am in a similar situation, I cannot load software onto the production box, but
      knowing the things that you point out here, make me a better developer.

      Have a great weekend
      Jamie
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: Sending Multiple attachments via SNDDST

        Hello Tom and Jamie,

        Thanks! for your replies.

        Comment

        Working...
        X