ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Email through AS400

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

  • Email through AS400

    Hi Friends,

    I need to know how to send e-mail to users through AS400. My actual problem is that I am going to schedule a job. This job will print a report in a spool file. I need to send the spool file as a attachment to the user through email. Is this possible?

    Also what is the use of SNDDST command? In this command I tried to send mail to my address, the command ran successfully but I didnā??t receive the mail. Please help in this regard.
    Regards,

    Regu

  • #2
    Re: Email through AS400

    hi Pavan

    Thanks for the reply.

    Some thing i need to know, how to check whether SMTP server is active or not? If not, to enable or activate this do i need to have administrator right? As a basic level programmer what i need to do for this?
    Regards,

    Regu

    Comment


    • #3
      Re: Email through AS400

      I as QPGMR have rights to STRMSF & start server. Did you follow pavan instructions?
      If so yu would know if you have rights.

      You can send attachements with snddst but they must reside in the QDLS of the IFS not the root.
      There are EMAIL API's available that allow you to send attachments.
      use API QtmmSendMail



      also the developer of CGIDEV2 has a mail tool mmail



      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


      • #4
        Re: Email through AS400

        Jamie

        Can I get a softcopy of BIG DUMMIES OF THE AS400
        Regards,

        Regu

        Comment


        • #5
          Re: Email through AS400

          Sorry buddy - there is no such book - I just made it up...
          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: Email through AS400

            Additional considerations:

            1. You may need to check the SMTP mail server that you are sending the emails thru. Often, these servers see these emails as unauthorized mail relays and discard the emails. Check with your network admin to make sure the server will accept emails from the i5 IP address.

            2. Also look into MMAIL (free download from IBM). This does all you want with an easier interface than SNDDST. (IMHO)

            Comment


            • #7
              Re: Email through AS400

              Actually ... Jamie and I are going to publish the "Big Dummy's Guide to the As400". We (or at least I am) are collecting information from questions and answers here and other sites.

              We honestly think this would be a good idea for a reference book and/or to learn "basic" As400 stuff that you REALLY want to know.

              -Rick

              Comment


              • #8
                Re: Email through AS400

                Rick --- Shhhhhhhh! its a secret
                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: Email through AS400

                  OOOps .. My bad!

                  Comment

                  Working...
                  X