# E-Mailing from an NJX page

**URL:** <https://techcommunity.softwareag.com/t/e-mailing-from-an-njx-page/98670>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [October 12, 2011, 5:02pm UTC](https://techcommunity.softwareag.com/t/e-mailing-from-an-njx-page/98670 "2011-10-12T17:02:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Van\_Achter](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/jan_van_achter/32/164_2.png) [@Jan\_Van\_Achter](https://techcommunity.softwareag.com/u/Jan_Van_Achter)\
**Post date:** [October 12, 2011, 5:02pm UTC](https://techcommunity.softwareag.com/t/e-mailing-from-an-njx-page/98670/1 "2011-10-12T17:02:22Z")

</div>

Hi,  
I am trying to send a simple e-mail from an NJX page.  
My idea is to use a link ‘[mailto:e.mail@test.be](mailto:e.mail@test.be)?subject=TEST’.  
So far I have tryed to use the controls with a link defined at runtime (the address and subject are dynamic 🙂 ).  
TRIAL 1:  
NJX:DOCUMENTLINK the purpose of this is open a document so this is not Ideal.  
Result:  
it opens my outlook mail form but I get alse a message

```auto
LINKDOCUMENT := "mailto:j.va@telenet.be?subject=TEST"
```

error: object doesn’t support this method or property on  
URL : [http://localhost:8080/cisnatural/HTMLBasedGUI/general/SUBPAGEControls.js](http://localhost:8080/cisnatural/HTMLBasedGUI/general/SUBPAGEControls.js)  
TRIAL 2:  
A Subpage in combination with a button  
I construct the url of the subpage in the event of the button and execute a process page update full.

```auto
SUBPAGEURL := "mailto:j.va@telenet.be?subject=TEST"
```

Result:  
The Outlook mail form is showed but when I close it the page is not responsive and I got an eternal hourglass  
TRIAL 3:  
iHTML  
I construct the html link in natural :

```auto
LINKMAILIHTML := "<a href=’mailto:j.va@telenet.be’>Email Me!</a>"
```

Result:  
An error page is shown

```auto

[b]FileAccessRouterServlet[/b]

In development mode certain files (e.g. for directory HTMLBasedGUI) are stored in a central directory - and accessed through this servlet program.Consequence: certain files are not part of every development project instance but are kept centrally for all projects.

The URL you want to address is not available in the file system.

[b]Technical Info[/b]
Query = /leUI/%E2%80%99mailto:j.va@telenet.be%E2%80%99
Could not find matching file in = D:/Projects/DIeteren/Workplace/DIeteren/.naturalone/apache-tomcat/webapps/cisnatural/../../../../DIeteren/User-Interface-Components/

```

Can someone tell me how to proceed? Or tell me how this is usually done?

Thanks,

Jan

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [October 12, 2011, 6:04pm UTC](https://techcommunity.softwareag.com/t/e-mailing-from-an-njx-page/98670/2 "2011-10-12T18:04:31Z")

</div>

Hi Jan,

I recommend the IHTML control:  
The njxdemos contain an IHTML sample: IHTML-P.  
I simply adapted this example in the following way:

COMPRESS ‘[…to me…](mailto:myname@softwareag.com)’ INTO CONTENTOFCONTROL

This worked perfectly in my environment.

Maybe you had some “left-overs” from TRIAL2 in your layout when you tried TRIAL 3?

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Jan\_Van\_Achter](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/jan_van_achter/32/164_2.png) [@Jan\_Van\_Achter](https://techcommunity.softwareag.com/u/Jan_Van_Achter)\
**Post date:** [October 13, 2011, 10:25am UTC](https://techcommunity.softwareag.com/t/e-mailing-from-an-njx-page/98670/3 "2011-10-13T10:25:25Z")

</div>

Thanks Christine.

---

<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:01pm UTC](https://techcommunity.softwareag.com/t/e-mailing-from-an-njx-page/98670/4 "2021-04-02T15:01:06Z")

</div>


