# How to send email using Natural (all platforms)

**URL:** <https://techcommunity.softwareag.com/t/how-to-send-email-using-natural-all-platforms/61294>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics, Natural-on-Windows-Unix\
**Created:** [August 5, 2006, 11:26pm UTC](https://techcommunity.softwareag.com/t/how-to-send-email-using-natural-all-platforms/61294 "2006-08-05T23:26:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Smith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/john_smith/32/39012_2.png) [@John\_Smith](https://techcommunity.softwareag.com/u/John_Smith)\
**Post date:** [August 5, 2006, 11:26pm UTC](https://techcommunity.softwareag.com/t/how-to-send-email-using-natural-all-platforms/61294/1 "2006-08-05T23:26:32Z")

</div>

Hi,

Does anyone know how to send email using Natural on Mainframe and Unix/Linux platform? Does anyone have programs to do it?

There is a similar topic on Windows platform, but I would like to know if anyone knows in other platforms.

It seems is easy to send email using EntireX, because we can find many objects to do it, included the example in the other topic, but I would like to think in customers that don’t have this product installed. Otherwise, If I use Natural on Windows sending email, I need to have this product installed into the server.

Please let me know if It is possible to do.

Thanks.

---

<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:** [August 6, 2006, 3:28pm UTC](https://techcommunity.softwareag.com/t/how-to-send-email-using-natural-all-platforms/61294/2 "2006-08-06T15:28:44Z")

</div>

It’s easy on Unix / Linux, you just issue the “mail” command using Natural’s SHCMD interface.

On the mainframe it depends on which environment we are talking about (COM-PLETE, CICS, TSO, Batch, …) and how easily you can open a TCP socket to talk to a SMTP server directly.

Alternatively, you may want to check out batch SMTP facilities in z/OS, for a start you may want to read [url][http://planetmvs.com/mvsmail/index.html[/url]](http://planetmvs.com/mvsmail/index.html%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![John\_Smith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/john_smith/32/39012_2.png) [@John\_Smith](https://techcommunity.softwareag.com/u/John_Smith)\
**Post date:** [August 7, 2006, 7:17am UTC](https://techcommunity.softwareag.com/t/how-to-send-email-using-natural-all-platforms/61294/3 "2006-08-07T07:17:05Z")

</div>

Hi Wolfgang,

Thank you for answering my question. I will test it and I will let you know about the results.

Thanks.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [August 7, 2006, 12:51pm UTC](https://techcommunity.softwareag.com/t/how-to-send-email-using-natural-all-platforms/61294/4 "2006-08-07T12:51:18Z")

</div>

Here I wrote a short example for mailing on Linux/Unix:

[http://natural.forums.softwareag.com/viewtopic.php?t=449](http://natural.forums.softwareag.com/viewtopic.php?t=449)

---

<div class="post-metadata">

**Author:** ![Steve3](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@Steve3](https://techcommunity.softwareag.com/u/Steve3)\
**Post date:** [October 3, 2006, 8:14pm UTC](https://techcommunity.softwareag.com/t/how-to-send-email-using-natural-all-platforms/61294/5 "2006-10-03T20:14:54Z")

</div>

How can I send an email from an online natural library? I can send an email in batch, but I have had numerous people ask if we can redirect %h to email. I run both in Complete and CICS on z/OS machines. Any suggestions would be appreciated.

Thanks

---

<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:** [April 2, 2021, 2:40pm UTC](https://techcommunity.softwareag.com/t/how-to-send-email-using-natural-all-platforms/61294/6 "2021-04-02T14:40:46Z")

</div>


