Natural subprogram SENDMAIL version for Linux?

Hi guys.

Hope you’re Ok.

Does anybody knows if there is a version of the NATURAL subprogram SENDMAIL for Natural Linux ?

Thanks in advance

Are you saying that you have been executing such a module? That is, something like
CALLNAT "SENDMAIL" ...
Was this on the mainframe or Natural for Windows, because I can’t find this module on either platform.

Perhaps you meant
CALL "SENDMAIL" ...
But I wasn’t aware that Software AG provided such an executable.

I would have expected the need for something like
CALL "SHCMD" "SENDMAIL" "ASYNCH" "NOSCREENIO"

Hi,

there is no subprogram, so we build our own.

  1. Create Bodyfile, if necessary.
  2. We build a temp-File with the commands:
    mail -r <sender> -s <subject> [-a <attachment>] dest-Email [< Bodyfile>] >/dev/null
  3. Run the command:
    COMPRESS '/bin/bash' COMMANDFILE INTO OS-COMMAND
    CALLNAT 'USR1052N' USR1052L
  4. Error handling
  5. Delete Command- and Bodyfile

Hope you can build it your on.

Best regards
Markus