我设置了一个电子邮件“代理类”,其中通知电子邮件被发送到他已订阅用户,但他可以回复的电子邮件notification@site.com
它应该包含他的答复。 在服务器端我希望能读他的电子邮件,他的回答添加到数据库-电子邮件存储在notification
用户的收件箱,这是伟大,现在能够与PHP读取它。
所以,我一直在四处寻找。这个解决方案,很多方案都IMAP,所以我想我给一个尝试,但我似乎无法弄清楚我的连接我的服务器打开收件箱。 我已经调整到不同的端口,但他们都不是能够连接。
imap_open("{localhost/imap:143}", "notification", "password");
我得到这样的错误:
Warning: imap_open(): Couldn't open stream {localhost/imap:143} in /var/www/site.com/www/mail.php on line 8
bool(false)
Notice: Unknown: Connection failed to localhost,143: Connection refused (errflg=1) in Unknown on line 0
Notice: Unknown: Connection failed to localhost,143: Connection refused (errflg=1) in Unknown on line 0
Notice: Unknown: Connection failed to localhost,143: Connection refused (errflg=1) in Unknown on line 0
Notice: Unknown: Connection failed to localhost,143: Connection refused (errflg=2) in Unknown on line 0
我不明白,显然这是我第一次尝试这一点,但它是什么,我清楚地做错了与连接?
编辑:我开始courier-imap
现在我得到这样的:
Notice: Unknown: [CLOSED] IMAP connection broken (server response) (errflg=1) in Unknown on line 0
Notice: Unknown: [ALERT] Fatal error: No such file or directory: No such file or directory in Unknown on line 0