Email multiple contacts in Python
You want this:
from email.utils import COMMASPACE
...
you = ["foo@example.com", "bar@example.com"]
...
msg['To'] = COMMASPACE.join(you)
...
s.sendmail(me, you, msg.as_string())
you = ('one@address', 'another@address')
s.sendmail(me, you, msg.as_string())
Try
s.sendmail(me, you.split(","), msg.as_string())
If you do you = ['a@a.com', 'a@a.com']
Try
msg['To'] = ",".join(you)
...
s.sendmail(me, you, msg.as_string())