我有以下工作代码从 GMail 帐户发送消息:
mailServer = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)
mailServer.ehlo()
mailServer.starttls()
mailServer.login(FROM_EMAIL, PASSWORD)
mailServer.sendmail(FROM_EMAIL, finalReciepients, msg.as_string())
mailServer.close() # Should be mailServer.quit(), but that crashes...
我不想发送消息,而是将其保存在草稿文件夹中。我怎样才能做到这一点?