Pear Queue - Logs / Records?

I use Pear Mailer and Mail Queue to send emails. Is it possible to save a record of each mail in the mail_queue table, and not be deleted as soon as it is sent?

It would be useful to track mail for debugging.

Many thanks,

Chris

+3
source share
1 answer

Read the section called “Using callbacks to create reports” at http://pear.php.net/manual/en/package.mail.mail-queue.mail-queue.tutorial.php .
All you have to do is (copy it and) implement a function insert_to_logto write data to a separate log table.

+2
source

Source: https://habr.com/ru/post/1792017/


All Articles