# Adding a hyperlink on a window

**URL:** <https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804>\
**Category:** Ignition\
**Created:** [March 24, 2011, 2:07pm UTC](https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804 "2011-03-24T14:07:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [March 24, 2011, 2:07pm UTC](https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804/1 "2011-03-24T14:07:15Z")

</div>

is there a way to add a active hyperlink on a window. like say if I want to have a support email listed on a page, and the user can click on it to launch outlook. I searched the forum and the manual but the only thing that comes up about hyperlinks involves the document viewer. I also tried html code on a label and that didnt work.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 24, 2011, 3:18pm UTC](https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804/2 "2011-03-24T15:18:13Z")

</div>

Just use a label component and make the text blue and underlined. Then you can just add a mouseClicked event to the component doing the following:`system.util.execute(["C:\\Program Files\\Outlook\\Outlook.exe"])`That is probably the wrong path but you get the idea.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [March 30, 2011, 11:51pm UTC](https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804/3 "2011-03-30T23:51:49Z")

</div>

Travis’ answer is right, but could be improved by using a command like this:

```auto
system.util.execute(["cmd.exe","/C","start","mailto:example@example.com"])
```

That will be more resilient so it will work (on Windows anyways) no matter what email client the user has configured.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [March 31, 2011, 2:46am UTC](https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804/4 "2011-03-31T02:46:16Z")

</div>

perfect. thanks carl.

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://forum.inductiveautomation.com/u/Ivan)\
**Post date:** [January 3, 2014, 9:04am UTC](https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804/5 "2014-01-03T09:04:47Z")

</div>

Thanks again Carl for this command!

To go further, I found this out:

`mailto:<to email>?cc=<cc email>&bcc=<bcc
mail>&subject=<subject text>&body=<body text> `  
I should be able to use this syntax to populate all the other fields, right?

Yet in Ignition I can pass only one more parameter after the adress, meaning that the example below just populates the cc field but not the next ones. Why is that?

```auto
system.util.execute(["cmd.exe","/C","start","mailto:example@example.com?cc=example2@example.com&subject=subject&body=bodytext"]) 
```

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [January 3, 2014, 4:45pm UTC](https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804/6 "2014-01-03T16:45:47Z")

</div>

Try using [system.net.openURL](http://www.inductiveautomation.com/support/usermanuals/ignition/system_net_openurl.htm) instead:

```auto
system.net.openURL("mailto:example@example.com?cc=example2@example.com&subject=subject&body=bodytext")
```

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://forum.inductiveautomation.com/u/Ivan)\
**Post date:** [January 6, 2014, 7:54am UTC](https://forum.inductiveautomation.com/t/adding-a-hyperlink-on-a-window/2804/7 "2014-01-06T07:54:18Z")

</div>

Perfect, thanks! ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")
