Hello. Can you tell me how to add outgoing email logging using the mail() function for all PHP versions and websites on the server?
Thanks!
It’s decided.
For those interested in how:
Add via the php.ini editor in the control panel
mail.add_x_header = On
mail.log = /var/log/phpmail.log
Set file permissions and create it:
touch /var/log/phpmail.log
chmod 666 /var/log/phpmail.log
1 Like