The to_addrs parameter is a list of strings (or a single string) containing the email address(es). The subject argument is a string containing the subject line. The msg argument contains the entire message body as a single string. The from_addr argument is an optional string with the email address of the sender, and it defaults to the address in the FromAddress configuration variable.
To do the equivalent in Python components:
import templating.MailServices templating.MailServices.sendmail ( to_addrs, subject, msg, from_addr )