I've gone through many SO posts and smtplib documentation, everything seems to be correct, but mail is sent to only first recipient in the list
Note: I'm using Python3.7, I've tried from Python 2.6 also, In below case mail is getting delivered only to very first recipient in receiver
Below is my code:
import smtplib
from email.mime.text import MIMEText
sender='from@domain.com'
receiver=['email1@domain.com', 'email2@domain.com', 'email3@domain.com']
msg = MIMEText("message")
msg['Subject'] = "Test Email"
msg['From'] = sender
msg['To'] = ",".join(receiver)
server = smtplib.SMTP("smtp.domain", 25)
sever.sendmail(sender, receiver, msg.as_string())
server.quit()