# Natural to send Report as attachment

**URL:** <https://techcommunity.softwareag.com/t/natural-to-send-report-as-attachment/102430>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [February 21, 2013, 8:26pm UTC](https://techcommunity.softwareag.com/t/natural-to-send-report-as-attachment/102430 "2013-02-21T20:26:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JB\_Newbie](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/jb_newbie/32/537_2.png) [@JB\_Newbie](https://techcommunity.softwareag.com/u/JB_Newbie)\
**Post date:** [February 21, 2013, 8:26pm UTC](https://techcommunity.softwareag.com/t/natural-to-send-report-as-attachment/102430/1 "2013-02-21T20:26:13Z")

</div>

I have a natural program setup to send email notifications based on different conditions that run in a job that we run daily. The email is just basic with at most 5 lines in the message. This works great. My question is has anyone every done something like this but send their report as an attachment with their email message?

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [February 25, 2013, 6:39pm UTC](https://techcommunity.softwareag.com/t/natural-to-send-report-as-attachment/102430/2 "2013-02-25T18:39:58Z")

</div>

yes…depends on the program you are using to send email. I remember “Dazel” sent everything as PDF attachments.

---

<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:** [February 27, 2013, 4:21pm UTC](https://techcommunity.softwareag.com/t/natural-to-send-report-as-attachment/102430/3 "2013-02-27T16:21:58Z")

</div>

Hello JB Newbie,

you can add attachments using the base64-Algorithm. [Base64 - Wikipedia](http://en.wikipedia.org/wiki/Base64)

For example an attachment “file.txt” containing “Hello world” results in:

```auto
begin 644 file.txt
+2&5L;&\@5V]R;&0`
`
end
```

Regards,

Matthias

---

<div class="post-metadata">

**Author:** ![Nikolay\_Kuhta](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@Nikolay\_Kuhta](https://techcommunity.softwareag.com/u/Nikolay_Kuhta)\
**Post date:** [May 16, 2013, 8:54pm UTC](https://techcommunity.softwareag.com/t/natural-to-send-report-as-attachment/102430/4 "2013-05-16T20:54:22Z")

</div>

Hi JB Newbie,  
Today I’m working on a VERY similar task (not without success I should admit :-). Bottom line: your SMTP server/service must be “up and running”; you may read more here

> **[sending Mail through JCL -IBM Mainframes](https://ibmmainframes.com/viewtopic.php?t=10808)**
>
> JCL & VSAM: I am using the above JCL to send mail from JCL, but i am not getting the mail. Does this depend on...

about it (I assume you are able to submit a JCL into OS from your NATURAL program).  
Best regards,  
Nikolay

---

<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, 3:02pm UTC](https://techcommunity.softwareag.com/t/natural-to-send-report-as-attachment/102430/5 "2021-04-02T15:02:55Z")

</div>


