ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Send Email Generically from SNDDST

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

  • Send Email Generically from SNDDST

    Long time reader, first time poster. . .

    I need to send email from several different user profiles as 1 user profile.

    Say, I have a seasonal business in which I take on a lot of manpower workers who get generic access to menus they use.

    One menu option, allows sending information by email. I would like these emails to go from a group profile. I do not want to set up 20 email addresses and 20 directory entries on the AS400. I want to set up 20 user profiles with 1 group profile, and the group profile has access to the directory entries, and the QDLS. I tried the GRTUSRPMN, but it also needs directory entry authority.

    How do I avoid the impending administrative nightmare?

  • #2
    Re: Send Email Generically from SNDDST

    Give me a second or two to think bout this

    anyone else?
    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: Send Email Generically from SNDDST

      Unless I get any ideas. . . here is my latest idea.

      Have a active job running that sends out email requests. This active job is signed in as a generic service user profile and email.

      All the users will send "requests" for email to this. The one job will send out all requests.

      I think this will do the trick.

      Last edited by TBOND; March 27, 2007, 07:55 AM.

      Comment


      • #4
        Re: Send Email Generically from SNDDST

        Thats a good idea...wish I had thought of that myself

        Are you using a NEP (never ending program) in batch using dataqueues?
        Now that would be slick....

        I do have examples on the site using API QtmmSendMail
        which will allow you to make some "fancy" html bodies.



        anyway you can share your final solution?

        Glad to see your posting........I guess we can say welcome even though youve
        been around for a while

        take care
        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


        • #5
          Re: Send Email Generically from SNDDST

          It ended up being more complicated and versatile.

          I ended up with a program running to check the data queue. Multiple report types are sent to the data queue. Depending on the type of report and the company number that is sending it the report is rerouted with 1 of 4 different email addresses.

          I had to create a table to hold the report type names, user id's, email addresses, and email subject lines.

          Comment


          • #6
            Re: Send Email Generically from SNDDST

            Thanks for the update.......any snippets would be appreciated
            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: Send Email Generically from SNDDST

              Hi TBOND

              Maybe I'm missing something here (and a bit late to be of help) but the simple solution is to use a distribution list within outlook.

              There you can add/delete members of that distribution list. When the Iseries sends to the distribution list it is forwarded to each member.


              outlook/new contact/new distribution list

              Hope that helps
              GLS
              Last edited by GLS400; October 31, 2007, 03:26 PM.
              The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

              Comment


              • #8
                Re: Send Email Generically from SNDDST

                Hi TBOND,
                (also a bit late to be of help)

                Another way would be to create a new user profile and directory entry, then use this user profile as a group profile for all the required profiles.

                In the pgm, get the email address from QAOKL02A(*1) & QATMSMTPA(*2) of the group profile. (If you don't need the group profile's email but rather the user's, then just use the user profile to get the details from QAOKL02A & QATMSMTPA).

                QAOKL02A(*1) chain with usrprf (or grpprf)
                QATMSMTPA(*2) chain with WS01DDEN and WS01DDGN
                Regards

                Kit
                http://www.ecofitonline.com
                DeskfIT - ChangefIT - XrefIT
                ___________________________________
                There are only 3 kinds of people -
                Those that can count and those that can't.

                Comment

                Working...
                X