I can\'t see where i\'m going wrong with this, I hope someone can spot the problem. I\'d like to send an email to multiple addresses; however, it only sends it to the first
Change
toaddrs = ", ".join(recipients)
to
toaddrs = recipients
since
server.sendmail(fromaddr, toaddrs, ...)
expects toaddrs to be a list of email addresses. (Or, of course, just use recipients in place of toaddrs.)
toaddrs
recipients