我创建了一个 python 脚本来使用 gmail 帐户发送电子邮件。我使用的是 Python 3.7,但是当我去运行该程序时,它"EOL while scanning string literal"在消息框中说。任何人都可以解决这个问题吗?告诉我你是否找到了解决它的方法。import smtplibserver = smtplib.SMTP('smtp.gmail.com', 587)#Next, log in to the serverserver.login("youremailusername", "password")#Send the mailmsg = "Hello!" # The /n separates the message from the headersserver.sendmail("you@gmail.com", "target@example.com", msg)
添加回答
举报
0/150
提交
取消