Is it possible to write a php script that accepts emails (like an email bot)
I would like to write a script that can recei开发者_运维技巧ve e-mail and then do something depending on instructions in that e-mail, but I have no idea where to start with this. Is this possible with PHP?
There's an old (but good) email on evolt about piping incoming emails to a php script.
http://www.evolt.org/incoming_mail_and_php
If you don't have terminal access, you could instead use the imap/pop functions in php to read a mailbox.
No. Only a mail server can read email. However, you can have the mail server pipe the output to a PHP CLI script.
精彩评论