# CC and BCC not working with function system.net.sendEmail

**URL:** <https://forum.inductiveautomation.com/t/cc-and-bcc-not-working-with-function-system-net-sendemail/34185>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [April 24, 2020, 8:02am UTC](https://forum.inductiveautomation.com/t/cc-and-bcc-not-working-with-function-system-net-sendemail/34185 "2020-04-24T08:02:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.wohlers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.wohlers/32/17969_2.png) [@andrea.wohlers](https://forum.inductiveautomation.com/u/andrea.wohlers)\
**Post date:** [April 24, 2020, 8:02am UTC](https://forum.inductiveautomation.com/t/cc-and-bcc-not-working-with-function-system-net-sendemail/34185/1 "2020-04-24T08:02:18Z")

</div>

Hi everybody, i use Ignition 7.9.11 and in a page I have a python script inside a button that sends an email.  
but it sends the email only to the adresses in the “dest” list

here the script:

```auto
text = "this is the body of the email"

smtpID = " ***censured*** :25"
from_adress = "adressA@xxxx.com"
sub = "TEST EMAIL"
dest = ["adressB@xxxx.com","adressC@xxxx.com"]
cc_dest = ["adressD@xxxx.com"]
bcc_dest = ["adressE@xxxx.com"]

if system.gui.confirm("send email?"):

	system.net.sendEmail(smtp=smtpID, fromAddr=from_adress, subject=sub, body=text, html=0, to=dest, cc=cc_dest, bcc=bcc_dest )

```

please help 🙂

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 24, 2020, 11:40am UTC](https://forum.inductiveautomation.com/t/cc-and-bcc-not-working-with-function-system-net-sendemail/34185/2 "2020-04-24T11:40:18Z")

</div>

The [manual](https://docs.inductiveautomation.com/display/DOC79/system.net.sendEmail) says cc and bcc are only available if you use an SMTP Profile defined in the gateway, not the smtp host option.
