Kit
Kit

Reputation: 4105

Pear Mail Queue - logs/records?

I am using Pear Mailer and the Mail Queue to send emails. Is it possible to keep the record of each mail in the mail_queue table rather than it being deleted as soon as it is sent?

It would be useful to track the mail for debugging.

Many thanks,

Chris

Upvotes: 3

Views: 1494

Answers (1)

rik
rik

Reputation: 8612

Read the section "Utilising Callbacks for Report Generation" on http://pear.php.net/manual/en/package.mail.mail-queue.mail-queue.tutorial.php.
All you have to do is (copy it and) implement the function insert_to_log to write the data in a separate log table.

Upvotes: 2

Related Questions