Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的要求是在将特定电子邮件发送到 Outlook 中的特定地址后立即调用 python 脚本。我在我的脚本中使用 win32com Outlook 客户端。
我正在考虑无限期地运行脚本,并继续阅读收到的电子邮件。但是,可能还有另一种更好的方法来实现这一点。
任何帮助是极大的赞赏 :)
在此先感谢, 帕尼
我得到了类似的东西,它使用了poplib。从记忆中它几乎是:
import poplib while True: email = checkEmail() if email['sender'] = 'senderiwant@domain.com': doJunk()
长话短说,看看poplib,它有用于检查/接收邮件的好东西