Email to trigger PHP Script… Possible?

前端 未结 2 1684
南笙
南笙 2021-01-21 11:25

I\'m in need of setting up an auto-response from an email account that I control, based on trigger words within the body of the email. But also, it needs to add/de

相关标签:
2条回答
  • 2021-01-21 12:01

    You can alias your email address directly to a php script if you run your own mail server (on linux this would just be in the /etc/alias file or equivalent where the target was your php script instead of an email address) eg http://www.topwebhosts.org/bbs/board.php?bo_table=server_mgmt&wr_id=73

    If not, then your only real choice is to set up a php process that checks an email address for mail every x minutes.

    I have used both these methods over the years to great success

    0 讨论(0)
  • 2021-01-21 12:07

    You can walk through emails with PHP's IMAP functions and undertake action (based on conditions/content). More info.

    0 讨论(0)
提交回复
热议问题