Email multiple contacts in Python
You want this:
from email.utils import COMMASPACE
...
you = ["[email protected]", "[email protected]"]
...
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 = ['[email protected]', '[email protected]']
Try
msg['To'] = ",".join(you)
...
s.sendmail(me, you, msg.as_string())