ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

sendind email by rpgle/cl program

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

  • sendind email by rpgle/cl program

    Hi,

    Actually I have made one program which is basically create a PDF file. now I want to send this pdf file to different user mail id.. already we have one pf file whereas all the mail id also updated... I am not understand how to send this pdf file through rpg or cl...

    Please help me in this regards,.....

    Regards,
    Simran............

  • #2
    Re: sendind email by rpgle/cl program

    try this



    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


    • #3
      Re: sendind email by rpgle/cl program

      thanks jamie,
      I want to send mail by cl, therefore each mail forward to different mail address in batch on daily basis....which command we have to use....
      do you have any idea abt this... actually i tried snddst command also
      OVRPRTF FILE(NewO_) PAGESIZE(150 160) LPI(9) +
      CPI(20) OVRFLW(100) PAGRTT(0) +
      FRONTOVL(*libl/ovlD)
      SNDDST TYPE(*FILE) +
      TOINTNET(('xyz@yahoo.com')) DSTD(ETN) DOCFILE(NewO_)
      bt no mail also received please give me an example .. for the same...


      Thanks
      simran

      Comment


      • #4
        Re: sendind email by rpgle/cl program

        I was try to send simply text mail it was working & i am receiving mail by the snddst command..
        but when I use to send any attachment of file ....it is asking for flr (folder) .. we are not used ftp ..
        so how could we transfer our spool file to any folder .. please help me in this regards....

        simran.....

        Comment


        • #5
          Re: sendind email by rpgle/cl program

          you could always mod this to run in cl....or just use snddst...problem is snddst wants files outta QDLS and I wouldnt recommend that to anyone...

          take the time convert the call to cl...

          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


          • #6
            Re: sendind email by rpgle/cl program

            it uses QDLS which has been depreciated by IBM for the IFS...

            so anyway QDLS uses command(s) CPYTOPCD and CPYFRMPCD

            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


            • #7
              Re: sendind email by rpgle/cl program

              yes you are right i just use same and it will work now ..
              but there is one probs has created, I want to send report through mail and report mailed to different id and it is working the main thing that ovl which was i used in printer file is not shown pdf file.which is mailed by the cl...the ovl is working when will cal rpg prog.without mail but when we mail pdf
              ovl does not show...
              so how can we implement this.....

              regards.
              simran

              Comment


              • #8
                Re: sendind email by rpgle/cl program

                check this thread http://www.code400.com/forum/showthr...e-to-PDF/page3
                and look for post and download from Giuseppe Costagliola... I believe it works with overlays...I cant remember cause
                Im old

                --or-- best solution is CGIDEV2


                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


                • #9
                  Re: sendind email by rpgle/cl program

                  hi,

                  i have do everything and i am not able to send pdf with overlay .. do anyone have some knowledge how to send email pdf with overlay in cl...

                  please help me ...

                  Comment


                  • #10
                    Re: sendind email by rpgle/cl program

                    did you use Giuseppe tool or try cgidev2?
                    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


                    • #11
                      Re: sendind email by rpgle/cl program

                      Hi Simran:

                      This article will explain why you are not getting the overlay.





                      Best of Luck
                      GLS
                      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

                      Comment


                      • #12
                        Re: sendind email by rpgle/cl program

                        I was try all of thng .......
                        Actually when I am using overlay for generating report . the output is correct ..
                        and spool file are generated with overlay; therefore I am only facing probs in while sending an email same pdf file.
                        in Cl ..
                        I was trying different command in cl like snddst, emlspl bt. mail reached to the different mail address. bt the problem is overlay of pdf is not showing ...

                        we are using there V5R1. so what we should do in this matter .. kindly help me in this regards........................



                        Regards,
                        Simran...............

                        Comment


                        • #13
                          Re: sendind email by rpgle/cl program

                          Hi SIMRAN:

                          Give this a try....
                          Code:
                           /* move pdf file from ifs to a folder                  */
                          CPY  OBJ('/home/mypdf.pdf') +                        
                             TOOBJ('/qdls/myflr/mypdf.pdf') REPLACE(*YES)    
                          /* delete ifs object                                         */
                          RMVLNK OBJLNK('/home/mypdf.pdf')                      
                          SNDDST TYPE(*DOC) +                                    
                                 TOINTNET((myuserid@mydomain.com)) +        
                                 DSTD('customer service weekly analysis') +      
                                 MSG('Customer Service Weekly Analysis Reports') 
                                 DOC(mypdf.pdf) FLR(myflr)
                          Best of Luck
                          GLS
                          The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

                          Comment


                          • #14
                            Re: sendind email by rpgle/cl program

                            thank you so much GLS.
                            I have tried same thing and nw my program is correctly run......

                            Regards,
                            simran......

                            Comment


                            • #15
                              Re: sendind email by rpgle/cl program

                              Now program is working and again there is another issue creates ...
                              Actually there is one RPGLE program and have two or three parm in program.In parm we fetch email id from mail file.
                              email id1, email Id2, email Id3 which is also include as parm in prog..
                              now main issue is when I am passing single parm in cl. it works. because variable size is 50 per email..and whenever passed multiple variable no email was received ..

                              PLEASE HELP ME....

                              REGARDS,
                              SIMRAN

                              Comment

                              Working...
                              X