开发者

Pear Mail Queue - logs/records?

开发者 https://www.devze.com 2023-02-10 15:13 出处:网络
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?

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消