ValueError: Mungkin ada paling banyak 1 header subjek dalam sebuah pesan

for email in email_list:
    msg['To'] = email
    server = smtplib.SMTP(host='smtp.gmail.com', port=587)
    server.starttls()
    server.login("[email protected]", "mypassword")
    server.send_message(msg)
    server.quit()
    del msg['To]  <----- Delete the subject of the message to resend.
DS in Training