# Issue sending email with system.net.sendEmail script

**URL:** <https://forum.inductiveautomation.com/t/issue-sending-email-with-system-net-sendemail-script/26170>\
**Category:** Ignition\
**Created:** [June 28, 2019, 5:03pm UTC](https://forum.inductiveautomation.com/t/issue-sending-email-with-system-net-sendemail-script/26170 "2019-06-28T17:03:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dholt](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dholt/32/4458_2.png) [@dholt](https://forum.inductiveautomation.com/u/dholt)\
**Post date:** [June 28, 2019, 5:03pm UTC](https://forum.inductiveautomation.com/t/issue-sending-email-with-system-net-sendemail-script/26170/1 "2019-06-28T17:03:12Z")

</div>

Hello, me again. I’m setting up a manual notification to request for signatures from other employees when we need to authorize a part change/update. I have a list of emails in a power table, the user selects which email they wish to send notification too and Ignition will email to that selected user along with relevant information. Using this script I can send email to myself because I’m just typing it in:

```auto
body = "Hello, I am attempting this."
recipients =["dholt@mail.com"]

system.net.sendEmail("mymailserver.server.com",
 "dholt@mail.com", "Here is the email!", body, 0, recipients)

```

I have a hidden label that reads the selection in the power table and gives the email address for the selected recipient, but when I use this:

```auto
body = "Hello, I am attempting this."
recipients = event.source.parent.getComponent('email_lbl').text

system.net.sendEmail("mymailserver.server.com",
 "dholt@mail.com", "Here is the email!", body, 0, recipients)

```

It doesn’t work. I’m sure it has to do with the python list [""] but I’m not sure how to correct that. Anyone help? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 28, 2019, 5:08pm UTC](https://forum.inductiveautomation.com/t/issue-sending-email-with-system-net-sendemail-script/26170/2 "2019-06-28T17:08:28Z")

</div>

Have you tried this?

```auto
body = "Hello, I am attempting this."
recipients = [event.source.parent.getComponent('email_lbl').text]

system.net.sendEmail("mymailserver.server.com",
 "dholt@mail.com", "Here is the email!", body, 0, recipients)

```

---

<div class="post-metadata">

**Author:** ![dholt](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dholt/32/4458_2.png) [@dholt](https://forum.inductiveautomation.com/u/dholt)\
**Post date:** [June 28, 2019, 5:10pm UTC](https://forum.inductiveautomation.com/t/issue-sending-email-with-system-net-sendemail-script/26170/3 "2019-06-28T17:10:37Z")

</div>

That was it. Is there an award for “Most helpless”? lol. Thanks!
