📜  电子邮件身份验证 python 代码示例

📅  最后修改于: 2022-03-11 14:45:25.351000             🧑  作者: Mango

代码示例1
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()