在PHP中处理IMAP电子邮件 [英] Processing IMAP email in PHP

查看:165
本文介绍了在PHP中处理IMAP电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要处理电子邮件收件箱,监视特定主题行的邮件。如果找到匹配,我需要获取正文内容,操纵和插入数据库。理想情况下,将邮件标记为已读,并将其移动到另一个IMAP文件夹。

I need to process an email inbox, monitor it for messages with a particular subject line. If it finds a match I need to get the body content, manipulate, and insert into a database. Ideally would mark the message as read and move it to another IMAP folder as well.

我在PHP文档中附带imap_open( http://us2.php.net/imap_open ),并找到一个链接 http://www.linuxscope.net/articles/mailAttachmentsPHP.html#_jmp0_

I'm poking around PHP documentation imap_open (http://us2.php.net/imap_open) and found a link http://www.linuxscope.net/articles/mailAttachmentsPHP.html#_jmp0_

在我太远之前,我想知道有没有人知道一个现有的PHP类,这是一个很好的包装器,我正在寻找的基础知识:

Before I get too far, I'm wondering if anyone is aware of an existing PHP class that's a good wrapper for the basics I'm looking for:

IMAP:


  • 连接

  • 列表文件夹

  • 列表消息

  • 读取消息 - 从,到,主体,身体

  • 将消息移动到服务器文件夹

  • 读取/未读取状态

  • connect
  • list folders
  • list messages
  • read messages - from, to, subject, body
  • move messages to server folders
  • read/unread status

谢谢!

推荐答案

p>我没有使用它,除了发送邮件,但它的应用程序耳朵说, Zend_Mail 组件会让您至少获得大部分那里的方式它似乎不支持在服务器上移动邮件,但您可能可以简单地扩展它。

I've not used it for anything but sending mail, but it appears that the Zend_Mail component will get you at least most of the way there. It doesn't seem to support moving messages on the server, but you could probably extend it fairly simply.

这篇关于在PHP中处理IMAP电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆