Hello, iam using latest version of ISPConfig and debian 10. Is here any way how to log emails sent via php mail? I tried set this https://www.howtoforge.com/how-to-log-emails-sent-with-phps-mail-function-to-detect-form-spam, but when i sent email via php, this mail is not logged. I found that i could add to php ini theese lines mail.add_x_header = On mail.log = /var/log/phpmail.log Thank you, maybe there is something else for debian 10.
I don't know what you have done. Have you adjusted the location of the logfile? Code: //$logfile = '/tmp/mail_php.log'; $logfile = '/var/log/mail.form'; There are a lot of comments to this howto, have you read them (they contain solutions to some of the problems)
Thank you. Yes, before i changed path to log file, as i read in comments. I have just create file with codes, edit php ini and change path to log file a created - mail.form But emails send via php not log in this file. Maybe i have to do something else. I try look at this again.