Hello,
I am trying to send an email to multiple people. The code below shows what I'm trying to do. When I add 2 addresses the email does not send to the second person. The code is:
me = '[email protected]'
you = '[email protected], [email protected]'
msg['Subject'] = "The Nightly Build Results"
msg['From'] = me
msg['To'] = you
# Send the message via our own SMTP server
s = smtplib.SMTP('a.a.a.a')
s.sendmail(me, [you], msg.as_string())
s.quit()
I have tried:
you = ['[email protected]', '[email protected]']
and
you = '[email protected]', '[email protected]'
Thanks