Log outgoing mail entries to a file on a a PHP application.
You will need:
- A PHP Application
I would like to know what mail my PHP application is sending.
platform variable:create --name php:sendmail_path --value "/usr/sbin/sendmail -t -X/var/log/app.log"
tail -f /var/log/app.log
You shoud see entries like
Feb 19 08:00:40 host=249.112.112.1 tls=off auth=off from=XXXX@XXXXX recipients=XXXX@XXXXX mailsize=110 smtpstatus=250 smtpmsg='250 OK' exitcode=EX_OK
I hope this provides some insight to your application and the mails it sends!