Trigger and run PHP script when mail is received on Exim
Posted: Tue Nov 26, 2019 10:40 pm
Hi,
I want to trigger my below PHP script - whenever "Server" receives mail in its mail server (Exim).
PHP script:
Is it possible to create "Exim" trigger which runs PHP script as soon as the mail is received?
Thanks
I want to trigger my below PHP script - whenever "Server" receives mail in its mail server (Exim).
PHP script:
Code: Select all
<?php
echo "Mail received ";
file_put_contents("/tmp/mailReceivedLog", "Last Mail Receved at".gmdate("d-m-y"));
?>
Thanks