Event Alert Question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Event Alert Question

  • Creator
    Topic
  • #54278
    Jon Melin
    Participant

      Hello,

      I am looking for a way to send an email notification out after hours when a certain message type comes inbound to a certain thread.

      So essentially I would like to email someone when an order comes in from a particular source after a certain time (i.e. 7pm).

      Has anyone had to do something like this before? I’ve been playing around with the events configurator to see if I could do this but I haven’t gotten it to work how I wanted yet.

      Thoughts or ideas?

      Thank you,

      Jon

    Viewing 6 reply threads
    • Author
      Replies
      • #80835
        Brandon Grudt
        Participant

          I’d use tcl, and attach it to the thread rather than create an alert.

        • #80836
          Jon Melin
          Participant

            Brandon,

            Good idea. I can also look for the message types I want as well. I wasn’t sure how to send an email notification via TCL, but this should lead me in the right direction.

            I appreciate the input.

            Thank you,

            Jon

          • #80837
            Charlie Bursell
            Participant

              I have done this a lot.  It is simple enough to check the time and, if between certain hours, check the message and formulate a message if required.

              As for the e-mail it depends mostly on your OS.  If Unix, simply use sendmail.  If Windows there are several options.  One of the more popular is TclMail which I have posted here many times.  It is good if no attachment are needed.

            • #80838
              Jon Melin
              Participant

                Charlie,

                I’ve been reading back on some of posts and have a few questions. Is tclMail integrated into Cloverlead automatically (I don’t see it in lib)?

                I’m running on Server 2008 r2. Version 6.0.1.0 of Cloverleaf.

                Maybe I am missing something along the way and over thinking this but there isn’t something I can use to send a simple email on a trigger.

                So I’d obtain that script and essentially do what you listed in another post with the array?:

                “#####################################################

                  # mailTo – Send e-mail

                  #           Call tclMail by setting up array as follows

                  #             Key   R/O/C           Contents

                  #          



                 


                  #           TO         R            Mail to Address

                  #           MSG        R            Mail message

                  #           SUBJ       R            Mail Subject

                  #           AUTH       O            Type Authorization Require

                  #           NAME       C            Login Name

                  #           PASS       C            Password

                  #           PORT       O            Mail Port to use (Default 25)

                  #           SERVER     R            SMTP Server address

                  #           DOMAIN     R            Mail domain

                  #           USER       R            Mail address of Authorized user

                  #           FROM       O            Mail From address (def CLOVERLEAF)

                  #

                  #           Change array parameters as required.

                  # It is assumed this routine is called with all needed array elements

                  # set except for the mail message and TO: address(s)

                  #

                  # The message is passed as a string

                  ########################################################################”

                Thank you,

                Jon

              • #80839
                Charlie Bursell
                Participant

                  Not included with Cloverleaf but has been posted many times.  Here it is again

                  If needed just for a site put in a directory under $HCISITEDIR/tclprocs.  I usually just use lib.  Run mkpkgindex against it

                  If needed for all sites make a directory like: $HCIROOT/Tcl/lib/tclmail and put it there

                  There are other mail packages to use.  This one is easy but no attachments

                • #80840
                  Charlie Bursell
                  Participant

                    Looks like attachment did not make it.  Let me try again  ðŸ˜€

                  • #80841
                    Charlie Bursell
                    Participant

                      Clicked the wrong thing.   In a hurry  ðŸ˜€

                      Got a message that says:  “The Extension pkg is not allowed”

                       

                      Change suffix from. .Tcl to .pkg

                  Viewing 6 reply threads
                  • The forum ‘Cloverleaf’ is closed to new topics and replies.