Email within Xlate?

Homepage Clovertech Forums Cloverleaf Email within Xlate?

Tagged: 

  • Creator
    Topic
  • #117805
    Matthew Brophy
    Participant

    Within Cloverleaf 6.1 on UNIX, has anyone fired emails from an (tcl) xlate or tcl proc within a route?  Would you need MIME to accomplish this?

    Looking to send message-specific alert (i.e. “location”) that would fall outside the Cloverleaf GUI Alerts and preferring to not invoke the OS-level ksh reading from a file.

Viewing 8 reply threads
  • Author
    Replies
    • #117806
      Vince Angulo
      Participant

      We do this all the time from translations.  For example, in our provider MFN interface if we have an add transaction, we call an xltp proc that uses:

      exec mailx

      to send from our UNIX server (SMTP enabled, of course).

    • #117808
      Matthew Brophy
      Participant

      thank you, Vince. Thats exactly what we were looking for (“exec mailx”) .

      I’ll share what we’ve built out once completed.

    • #117809
      Don Martin
      Participant

      Sounds like this isn’t what you’re looking for, but I’ll add it in case it helps others.

      package require shmc_email

      set subject “email subject”
      set message “An error occured when trying to send some data…”
      set email “me@someDomain.org”
      if [catch {shmc_email::email $email $subject $message} err] {
      puts “Error Calling SHMC_Email in $module — $err”
      }

    • #117816
      Charlie Bursell
      Participant

      I wrote TclMail many years ago and it was used many, many times.  There may be better alternatives now but I assume it is still in the archives.

    • #118004
      Matthew Brophy
      Participant

      within the xlate, we used a conditional IF statement to determine if a notification would be sent.

      system echo “Please remove the LaPOST document for $MRN $DOB” | exec mailx -s “CLOVERLEAF_EMAIL<encrypt>”

       

      this is intended to be sent only within our secure domain Exchange server.

    • #119226
      Shane Farney
      Participant

      Can anyone upload tclmail?  I haven’t been able to find it anywhere on the board since things were switched to the new format.

    • #119228
      Charlie Bursell
      Participant

      Here you go.  Note the pkg suffix.  I always install as a package.

    • #119231
      Rob Abbott
      Keymaster

      Charlie – I updated the settings to allow .pkg files.  Please try again!

      Rob Abbott
      Cloverleaf Emeritus

    • #119236
      Charlie Bursell
      Participant

      Here you go

      Attachments:
      You must be logged in to view attached files.
Viewing 8 reply threads
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,432
Topic Tags
286
Empty Topic Tags
10