Emailing from within a tcl proc

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Emailing from within a tcl proc

  • Creator
    Topic
  • #50589
    Kenadi Moore
    Participant

      Hello,

      I am trying to email from within a tcl proc.

    Viewing 2 reply threads
    • Author
      Replies
      • #66708
        Jeannette Wistrom
        Participant

          Try using the catch command.  I don’t have an example with me, but I am sure it is in the tcl help.

        • #66709

          Here is one way to do it:

          Code:

          catch {exec echo “Skipped Provation message for $PIDname , $PIDnumber” | mail -s “Skipped Provation Message” $pagerUSERS &} catch_return

          -- Max Drown (Infor)

        • #66710
          Kevan Riley
          Participant

            I ususally do something like this:

            set subject “message from Cloverleaf Server”

            set address “someone@ahss.org”

            set cmd “exec mail -s “$subject” $address < /tmp/tmp_email & "

            if {[catch $cmd result]} {

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