时间:2021-07-01 10:21:17 帮助过:59人阅读
fromAddress = 'sender@example.com' toAddress = 'me@my.domain' msg = "Subject: Hello\n\nThis is the body of the message." import smtplib server = smtplib.SMTP("localhost", 25) server.sendmail(fromAddress, toAddress, msg)
希望本文所述对大家的Python程序设计有所帮助。