import smtplib
from email.mime.text import MIMEText

MailSever = "smtp.126.com"
Sender = "fever6@126.com"
Password = "xxx"

Message = "hello"
Msg = MIMEText(Message)

Msg["Subject"] = "ok"
Msg["From"] = Sender

s = smtplib.SMTP(MailSever, 25)
s.login(Sender, Password)
s.sendmail(Sender, ["1xx8@qq.com", "xxx@126.com"], Msg.as_string())

s.quit()