【问题标题】:imap send email particular date pythonimap 发送电子邮件特定日期 python
【发布时间】:2017-05-15 16:39:15
【问题描述】:

我有一个 IMAP 项目,python。

我想通过 IMAP 阅读 Gmail, 我想在特定的日期和时间发送它。 有可能吗?

我知道使用 IMAP 发送电子邮件或使用 IMAP 阅读某人的电子邮件。

但我不知道在特定日期和时间发送电子邮件。

【问题讨论】:

  • IMAP 不用于发送邮件,因为您需要 SMTP。
  • 那么,我可以发送带有 SMTP 特定日期和时间的电子邮件吗?

标签: python imap


【解决方案1】:

您正在寻找的是一个名为 future release 的 SMTP 扩展,它很少被实现。你可以告诉 gmail 不支持:

$ telnet smtp.gmail.com 587
Trying 2a00:1450:400c:c0b::6c...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP p104sm12110308wrc.66 - gsmtp
ehlo asdf
250-smtp.gmail.com at your service, [2001:4d88:100c:...
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8

列表中没有 FUTURERELEASE。它看起来像这样(来自另一台服务器):

250-FUTURERELEASE 406682791 2030-04-04T08:00:00Z

您可以将其作为服务形式购买,例如mailgun/sendgrid/whathaveyou。当然,它很容易在任何 unix 服务器上实现。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-09
    • 1970-01-01
    • 2019-01-06
    • 2016-11-23
    • 1970-01-01
    • 1970-01-01
    • 2014-07-09
    • 1970-01-01
    相关资源
    最近更新 更多