📅  最后修改于: 2022-03-11 14:45:25.351000             🧑  作者: Mango
import smtplib
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.login("your username", "your password")
server.sendmail(
"from@address.com",
"to@address.com",
"this message is from python")
server.quit()