Python发送邮件
import smtplib
server=smtplib.SMTP()
server.connect("smtp.163.com",25)
server.login("user"," pwd")
server.sendmail("from@163.com","to@qq.com","'Subject: this is a email from python demo\r\n\r\nJust for test~_~'")
server.quit()
import smtplib
server=smtplib.SMTP()
server.connect("smtp.163.com",25)
server.login("user"," pwd")
server.sendmail("from@163.com","to@qq.com","'Subject: this is a email from python demo\r\n\r\nJust for test~_~'")
server.quit()