Add a filter for all outgoing emails

Hi all,
I want to add a filter that allows me to add a PHP-generated element to all outgoing emails. I’ve tried several things but it doesn’t work. Do you have any leads to give me ?

In advance, many thanks