The below script is not taking the template while sending out the email its just sending out the subject

Subject = event.source.parent.getComponent('Container').getComponent('Text Field 7').text
Template = event.source.parent.getComponent('Container').getComponent('Text Area').text
Email = event.source.parent.getComponent('Container').getComponent('Text Field 3').text.split(",")
system.net.sendEmail(smtpProfile = "xxxx", fromAddr="xxxx", subject=Subject, Template=Template, html=1, to=Email)
print "Email Sent Successfully."

What gave you the impression system.net.sendEmail accepts a 'template' keyword argument?
https://docs.inductiveautomation.com/display/DOC81/system.net.sendEmail

1 Like

Still it's not sending the body only the subject

You're not providing a body.

1 Like

I mean the template that I have in my script.
It needs to fetch the data in the text area and send it out via email.

Paul linked you to the docs. 'Template' isn't the name of the body argument, 'body' is.

1 Like