Reputation: 17049
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 for these, what keywords should I google?
Upvotes: 2
Views: 605
Reputation: 35331
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
Upvotes: 1