ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

can I pop outlook from greenscreen?

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

  • can I pop outlook from greenscreen?

    I can get a website to "pop"...

    PHP Code:
      //                                                              
      // STRPCCCMD PCCMD('START www.midrangecomputing.com')           
      //                                                              
          
    cmdstring 'STRPCCMD PCCMD(' +                         
                      
    'START http://www.caldwellinc.com/' +       
                      
    ') PAUSE(*NO) ';                                
          
    cmdlength = %len(%trim(cmdstring)); 
    Could someone let me know how to do this with an email address?

    Guess I should be more specific... I can start outlook.exe
    but how can I auto start a new email message with a passed in
    to address...?


    thanks
    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

  • #2
    Re: can I pop outlook from greenscreen?

    Sure just change the http://www.... to execute the outlook.exe from whatever folder you have it in. Mine is:

    "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /recycle

    That's your strpccmd line.
    Bill
    "A good friend will bail you out of jail,
    A true friend would be sitting beside you saying,
    'Wow, that was fun.'"

    Comment


    • #3
      Re: can I pop outlook from greenscreen?

      if outlook is the default mail client then this works:
      Code:
      STRPCCMD PCCMD('START mailto:tommy@tommyholden.com')
      I'm not anti-social, I just don't like people -Tommy Holden

      Comment


      • #4
        Re: can I pop outlook from greenscreen?

        perfect...thank you....
        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


        • #5
          Re: can I pop outlook from greenscreen?

          Damnation! I live in the dark ages! Hadn't a clue that this kind of thing could happen. I'm gonna give this popping business a spin with my pretty little spreadsheets and see if users can now have their reports pop-pen up in Excel. If I get working I think I'll erect something to myself... and course to the good people of clan code400!

          Comment


          • #6
            Re: can I pop outlook from greenscreen?

            kinda cool -- Im messing with the cc section as well as the subject...
            Tom to the rescue....what friggen hex char do I need to get this to work?

            I can either get subject to work --or-- cc to work never both at the same time..

            also need to figure out the spacing between words for the subject..
            Ill keep working -- sure hope Tom already knows the answers,

            Izzz a big loser!

            PHP Code:
               //                                                                      
               // STRPCCCMD PCCMD('START mailto:jabber@lietome.com')            
               // ?subject=Mail from Our Site                                          
               // me@mysite.com?subject=Hello&cc=you@yoursite.com&bcc=her@hersite.com  
               //                                                                      
                   
            cmdstring 'STRPCCMD PCCMD(' +                                 
                               
            'START mailto:jabber@lietome.com'+                   
                               
            '?cc=pizza@code400.com'+                                
                               
            '&subject=Hello_big_Test'                               
                                
            +                                                  
                               
            ') PAUSE(*NO) ';                                        
                   
            cmdlength = %len(%trim(cmdstring));                                 
                                                                                       
                   
            monitor;                                                            
                    
            $command(cmdstring:cmdlength);                                     
                   
            on-error;                                                           
                   
            endmon
            i tried these
            PHP Code:
            d SP              c                   const(X'20')      
            d CA              c                   const(X'CA')      
            d CRLF            c                   CONST(X'0d25')    
            d LF              c                   CONST(X'25'
            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: can I pop outlook from greenscreen?

              I believe there's a 135 or so character length limit on the actual command, so you may need to play around that. If anything, you can always create a .bat file with everything you need on the IFS, and invoke that directly instead of the command (and avoid having to play with funky hexes).

              Comment


              • #8
                Re: can I pop outlook from greenscreen?

                Thats a fantastic idea....but I want it to be dynamic...I would be building this
                on the fly....But I can write the .bat within the rpg to the ifs then call it..

                Ill see what I can put together.. Thanks
                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: can I pop outlook from greenscreen?

                  You can pass variables to .bat's as well Would save you having to write one every time.

                  Comment


                  • #10
                    Re: can I pop outlook from greenscreen?

                    try to build the string like this:
                    Code:
                    STRPCCMD PCCMD('START mailto:jabber@lietome.com?cc=pizza@code400.com?subject=Hello%20Big%20Test') 
                    PAUSE(*NO)
                    %20 is hex value for a space.
                    I'm not anti-social, I just don't like people -Tommy Holden

                    Comment


                    • #11
                      Re: can I pop outlook from greenscreen?

                      I like the IFS idea of RPGnoobie. With the 120-130 character limit out of the way you'll be able to add attachments to the mail as well.

                      See here: [URL="http://www.brighthub.com/office/collaboration/articles/21840.aspx"[/URL]

                      Comment


                      • #12
                        Re: can I pop outlook from greenscreen?

                        Been doing that for years. Actually have an application for grean screen theatassociates a a PC type file stored in the IFS with green screen say part number. The user can take option "5" to display the given PC file, whether that be a pdf, jpg, dwg, or any type PC file.

                        As long as the PC knows what to do woth that file it will open it.

                        You do not need to send down the command string to open the application first. Example: If I want PC file PartNumber.pdf to op[en I just send down:

                        "h:/YourSharedFolder/PartNumber.pdf" form the strpccmd. the PC says Hey That's a PDF document it runs adobe reader (or any other PC program that is associated with .pdf files) and opens the file.

                        same for .xls or .doc. just check you fiel associations.
                        I do the same thing for archived invoices. they are printed to a pdf file on the ifs, the use can call up the pdf archived invoice directly from green screen wile viewing the customer's invoice history summary.

                        the list actually goes on and on, have done many things using that.

                        Good Luck
                        Bill
                        "A good friend will bail you out of jail,
                        A true friend would be sitting beside you saying,
                        'Wow, that was fun.'"

                        Comment


                        • #13
                          Re: can I pop outlook from greenscreen?

                          OH btw you don't need START in the command string. I have never put that there.
                          Bill
                          "A good friend will bail you out of jail,
                          A true friend would be sitting beside you saying,
                          'Wow, that was fun.'"

                          Comment


                          • #14
                            Re: can I pop outlook from greenscreen?

                            as far as long URLs...check this out. call a web service pull back the tinyURL and slug it into your STRPCCMD...
                            I'm not anti-social, I just don't like people -Tommy Holden

                            Comment


                            • #15
                              Re: can I pop outlook from greenscreen?

                              Awesome! Thanks Bill, I'm feeling like a kid at Christmas here.

                              Is it just me, or did that sound a lttle nerdy? Or girly? Or little nerd girly? Whatever, a whole vista of possibilities has been uncovered and I'm just dying to get back to the office tomorrow to play with my new toys.

                              Comment

                              Working...
                              X