自动回复特定消息的电子邮件

发布于 2024-11-30 20:24:25 字数 61 浏览 7 评论 0原文

有没有办法自动回复特定消息。这里的过程是您通过例如提出请求。 Outlook,然后回复您所提出的请求的响应。

Is there a way to automate reply to a particular message. The process here is that you make a request through, eg. outlook, and then reply to the response of the request you made.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

反话 2024-12-07 20:24:25

是的,您可以让您的应用程序使用 POP3 或 IMAP 定期检查收件箱中的邮件,如果有邮件与您的请求格式匹配,则执行某些操作。

类似的东西(实际上不是一个工作示例,更像是伪代码)

mail=Mail.login(:server => 'foo', 
                :user => 'john', 
                :password => 'john_is_the_king_pimp'
)
while 1==1
  mail.new_messages do |msg|
    if msg.subject.match(/^REQUEST/) 
      read stuff from the message and do something about it
    end
  end
  sleep 60
end

Yes, you make your application periodically check for mail in the inbox using POP3 or IMAP and do something if there's a message that matches with the format of your request.

Something like (not actually a working example, more like pseudo code)

mail=Mail.login(:server => 'foo', 
                :user => 'john', 
                :password => 'john_is_the_king_pimp'
)
while 1==1
  mail.new_messages do |msg|
    if msg.subject.match(/^REQUEST/) 
      read stuff from the message and do something about it
    end
  end
  sleep 60
end
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文