Email alerts give me a headache

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Email alerts give me a headache

  • Creator
    Topic
  • #49641
    garry r fisher
    Participant

      Hi,

      Simple tcl script as below. Works fine running from the command line but won’t run from an alert. I’ve set it up to ‘exec emailer.htc’ but when I activate the alert I get the error “Unable to CreateProcess: emailer.htc

      I’ve gone through the various historical entries on alerts and this looks correct but obviously isn’t!

      Help please.

      Cloverleaf 5.4.1 on W2003

      Thanks

      Garry

      #—

      # Name : emailer

      #

      #—

      #

      ###############################################

      # main

      #

      proc main { argc argv } {

         package require tclMail 1.0

      # Setup array

      #

         set mailArray(TO) garry.fisher@dummy.uk

         set mailArray(SERVER) 10.1.2.3

         set mailArray(SUBJ) “Interface Down”

         set mailArray(MSG) “There is a problem with the interface on the Cloverleaf server”

         set mailArray(USER) Garry.Fisher

         set mailArray(DOMAIN) dummy.uk

         echo “Calling tclMail”

      # Call tclMail

      #

         if {[catch {tclMail::SendMail mailArray} err]} {

             echo err: $err)

         }

      }

      ###############################################

      main $argc $argv

    Viewing 2 reply threads
    • Author
      Replies
      • #62833
        Rob Abbott
        Keymaster

          Garry, looks like you are doing this from windows?   Try “exec (path-to-hcitcl.exe) emailer.htc”

          Rob Abbott
          Cloverleaf Emeritus

        • #62834
          garry r fisher
          Participant

            Thanks Rob,

            I’ll give that a try. I’ve put the file in the HCIROOTbin directory so shouldn’t this get picked up anyway?

            Regards

            Garry

          • #62835
            garry r fisher
            Participant

              Hi,

              In order to get email alerts working I ended up using bmail. I will revisit tclMail in the future and report on my efforts.

              Regards

              Garry

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