Emailing from within a tcl proc

Homepage 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.

Forum Statistics

Registered Users
5,127
Forums
28
Topics
9,300
Replies
34,445
Topic Tags
288
Empty Topic Tags
10