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

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:

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 :slight_smile:

The manual says cc and bcc are only available if you use an SMTP Profile defined in the gateway, not the smtp host option.