Send email from Lawson Unix app to Outlook

 4 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Karl Kemp
Basic Member
Posts: 20
Basic Member
    Anyone ever put code in a Unix Cobol app to send an email notification to Outlook or Groupwise?

    It seems like in a previous life I did this in a custom Lawson app, but now I can't find my notes on it.

    Any ideas?
    John Henley
    Posts: 3353
      See https://www.danalytics.co.../archive/2004-12.htm
      In the article on post-processing, there is a script for using sendmail via Unix.
      Thanks for using the LawsonGuru.com forums!
      John
      Sam Simpson
      Veteran Member
      Posts: 239
      Veteran Member
        I have created lots of scripts that send email and attachments, ftps and
        other scripts for moving, archiving or renaming files. These scripts can be called by 4GL(cobol) or BCI.
        Karl Kemp
        Basic Member
        Posts: 20
        Basic Member
          quick follow-up question:

          if i'm wanting to call a script, which is named:

          audit_email.ksh

          do I populate ws-command with:

          STRING "./$SCRPDIR/adminS/audit_email.ksh"
          DELIMITED BY SIZE INTO WS-COMMAND.

          wasn't sure if I needed to pass the ./

          thanks!
          Sam Simpson
          Veteran Member
          Posts: 239
          Veteran Member
            You really don't have to use the path. Move your script to
            $CCSDIR/bin and make sure to give full access(777) to the script.

            STRING "audit_email.ksh" DELIMITED BY SIZE INTO WS-COMMAND.