开发者

Getting email from Gmail to PHP

Gmail can redirect email elsewhere. And, as far as I understand, my server can receive email.

I need that every mail that my gmail gets, should be redirected to my server. And here, PHP script should parse them and send to database.

Redirection in gmail is not problem, but what should i do next?

Is it possible at all?

If it is possible, what do I need fo开发者_如何学Gor these, what keywords should I google?


You can add an alias on your mailserver (typically in the /etc/aliases file but the location can differ) and deliver the mail to a script.

script    "|/usr/share/myapp/myscript.php"

I found this article explaining it in PHP


Try ImapMailbox class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜