# Natural subprogram SENDMAIL version for Linux?

**URL:** <https://techcommunity.softwareag.com/t/natural-subprogram-sendmail-version-for-linux/243402>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [August 5, 2021, 3:03pm UTC](https://techcommunity.softwareag.com/t/natural-subprogram-sendmail-version-for-linux/243402 "2021-08-05T15:03:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Mogollon](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/victor_mogollon/32/820_2.png) [@Victor\_Mogollon](https://techcommunity.softwareag.com/u/Victor_Mogollon)\
**Post date:** [August 5, 2021, 3:03pm UTC](https://techcommunity.softwareag.com/t/natural-subprogram-sendmail-version-for-linux/243402/1 "2021-08-05T15:03:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [August 16, 2021, 9:05pm UTC](https://techcommunity.softwareag.com/t/natural-subprogram-sendmail-version-for-linux/243402/2 "2021-08-16T21:05:24Z")

</div>

Are you saying that you have been executing such a module? That is, something like  
C`ALLNAT "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"`

---

<div class="post-metadata">

**Author:** ![mwessjoh](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mwessjoh](https://techcommunity.softwareag.com/u/mwessjoh)\
**Post date:** [August 19, 2021, 8:33am UTC](https://techcommunity.softwareag.com/t/natural-subprogram-sendmail-version-for-linux/243402/3 "2021-08-19T08:33:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 17, 2021, 8:34am UTC](https://techcommunity.softwareag.com/t/natural-subprogram-sendmail-version-for-linux/243402/4 "2021-11-17T08:34:04Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
