安全 email email 简单脚本验证发送邮件 1 2 3 4 5 6 7 8 9 10 11 12 from smtplib import SMTP host = "221.176.9.226" user = "xxxx@139.com" password = "xxxxx" server = SMTP() server.connect(host,"25") # server.starttls() server.login(user,password) server.quit()