且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

后缀:将电子邮件发送到PHP

更新时间:2023-01-09 20:28:27

您也许可以使用.forward,但最简单的方法可能是配置procmail.

You may be able to use a .forward, but probably the easiest way is to configure procmail.

这是一个示例.procmailrc规则,可能会有所帮助:

here's a sample .procmailrc rule that may help:

:0 w
* ^From.*authorized@example.com
| php /path/to/script.php

如果电子邮件来自authorized@example.com,则它将被传递到php脚本.由于此操作是通过可与邮件服务器集成的procmail完成的,因此MySql设置不会有任何影响.

If the email comes from authorized@example.com, then it will get passed to the php script. Since this is done from procmail which can be integrated with the mail server, the MySql setup shouldn't impact anything.