I use $run to convey data to a PHP script (programme).
> warn message = ${run{SHELL -c "PHP PMAIL 'A' $sender_address \
> $local_part@$domain ${primary_hostname} \
> '[SNC24] Sender unauthorised' \
> 'Subject : ' '$h_subject:'"}}
It works reliably.
Can the 'warn' and 'message' be substituted for other terms ?
Regards,
Paul.
Notes:
PMAIL is a predefined Exim constant containing the PHP script's details.
SN is another predefined Exim constant.