ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

SNDDST how to Attach file from IFS folder

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

  • SNDDST how to Attach file from IFS folder

    I like to attached an file from IFS and send mail using SNDDST. could any body can help it.

    Salman

  • #2
    Re: SNDDST how to Attach file from IFS folder

    you can't attach IFS files using SNDDST. you'll have to use a very ugly API or a pre-built tool like MMAIL (which is free and you can find it at easy400.net). SNDDST and any other QDLS/Officevision environment tools have been deprecated and will not be enhanced for these types of functions. move to the IFS...
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: SNDDST how to Attach file from IFS folder

      you can attach files from QDLS on SNDDST

      Code:
      SNDDST TYPE(*DOC) TOUSRID((FLANARY ROCKFORD))            
      TOINTNET((jflanary@nowhere.com))                       
      DSTD('Take this qdls file') MSG('this is message field') 
      DOC(T.TXT) FLR('jamie')
      Or as Tom said MMAIL or roll your own...
      I posted one here it is (you need some BASE64 stuff)
      it comes from Scott Klement see link


      jamie
      Attached Files
      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: SNDDST how to Attach file from IFS folder

        Originally posted by jamief View Post
        you can attach files from QDLS on SNDDST
        True but you can't attach IFS files...and I highly recommend moving to IFS usage and abandoning QDLS altogether.
        I'm not anti-social, I just don't like people -Tommy Holden

        Comment


        • #5
          Re: SNDDST how to Attach file from IFS folder

          okay im not going to start this thread again....

          but QDLS is under the IFS directory, which in most real (PC) applications
          would mean that QDLS is IFS

          Did I mention I like cheese

          But again I agree with TOM...Whatever or where ever QDLS is..I wouldnt use
          it......unless I had to
          Attached Files
          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


          • #6
            Re: SNDDST how to Attach file from IFS folder

            actually...QDLS was "moved" but actually sits as a separate layer ON TOP of the IFS (which is why a lot of folks these days have random quirks/issues trying to use QDLS as they would "normal" IFS directories.)
            I'm not anti-social, I just don't like people -Tommy Holden

            Comment


            • #7
              Re: SNDDST how to Attach file from IFS folder

              There is now native support for this

              New command as of April 2013: SNDSMTPEMM

              This will send IFS objects as email attachments.

              For example: SNDSMTPEMM RCP((JOEY.BLOGGS@COMPANY.COM))
              SUBJECT('Here is your IFS file')
              ATTACH(('/Folder/Longfilename.PDF'))

              You may need to load PTFs:

              Apply SI44666 in v6r1
              Apply SI44334 in v7r1

              Patrick

              Comment


              • #8
                Re: SNDDST how to Attach file from IFS folder

                Originally posted by Patrick__D View Post
                There is now native support for this

                New command as of April 2013: SNDSMTPEMM

                This will send IFS objects as email attachments.

                For example: SNDSMTPEMM RCP((JOEY.BLOGGS@COMPANY.COM))
                SUBJECT('Here is your IFS file')
                ATTACH(('/Folder/Longfilename.PDF'))

                You may need to load PTFs:

                Apply SI44666 in v6r1
                Apply SI44334 in v7r1

                Patrick
                Thanks Patrick! I believe this is what I was looking for!
                Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more.
                Nikola Tesla

                Comment

                Working...
                X