开发者

Is it possible to write a php script that accepts emails (like an email bot)

开发者 https://www.devze.com 2022-12-26 19:59 出处:网络
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

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.

0

精彩评论

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