我在Automate the Boring Stuff with Python为一个实践项目制作了一个应用程序,它获取了一个家务清单,并将一个随机家务分配给电子邮件清单中的每个电子邮件地址。我使用的电子邮件是outlook和gmail,它们是我自己的帐户。发送消息的基本代码如下所示:
smtpObj = smtp.SMTP('smtp-mail.outlook.com', 587)
smtpObj.ehlo()
smtpObj.starttls()
smtpObj.login(<my_email>, password>
smtp.sendmail(my_email, <email_from_list>, message)
它发送的电子邮件很好,但收到时是空的。为什么会这样
目前没有回答
相关问题 更多 >
编程相关推荐