call email tcl

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf call email tcl

  • Creator
    Topic
  • #55402
    Adam Qualls
    Participant

      Does anyone have a tcl script that I could use or build from that I could use for this situation?  

      I would like to be able to call a script that will take whatever source text I use and send it in an email to me, but I’m unsure how to write the script to do this.   We have separate scripts that work for emailing alerts, but I do not think they are written to be used within translations.   Any help?

    Viewing 3 reply threads
    • Author
      Replies
      • #85193
        Donna Bailey
        Participant

          What is your operating system?

          Donna

          Donna Bailey
          Tele: 315-729-3805
          dbailey@microstar.health
          Micro Star Inc.

        • #85194
          Adam Qualls
          Participant

            Donna Ledgerwood wrote:

            What is your operating system?

            Donna

            OS is AIX 6.1

            Clovelreaf version 5.7 rev 2

          • #85195
            Donna Bailey
            Participant

              Maybe can use this..set up an xlt tcl…would have to pass what ever you need as an argument…

              if {$mailflag == “Y”}   {

              set email_msg “The following information is for:n Patient Name: $namen Account: $acct n Dependent Name: $cname n  filenumber: $filenum n  filetype:  $filetype n  lkupcodes:$lkupcodes_all  n  Issues found: $all_errors n n n Message:$segs “

              #set email_mss for:n Patient Name: $namen Account: $acct n Test Ordered: $testname n Collection Date:  $col_dtn Specimen Source: $obr15 n Reported Organism:  $trm_nte3″

                         echo “email message: $email_msg”

                        # system echo “$email_msg” | mailx -s “TEST TEST TEST UHC Ack Msg received” mmagnanti@romehospital.org

                         #system echo “$email_msg” | mailx -s “TEST TEST TEST UHC Ack Msg received” $maillist

                  }

              Hope this helps…

              Donna

              Donna Bailey
              Tele: 315-729-3805
              dbailey@microstar.health
              Micro Star Inc.

            • #85196
              Donna Bailey
              Participant

                Sorry …should’ve uncommented one of the mailx lines…this was used on test and after testing we didn’t need the email…

                Donna Bailey
                Tele: 315-729-3805
                dbailey@microstar.health
                Micro Star Inc.

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