Log all mail sent by OCS system
4.0
Open Conference System (OCS) sends many auto-generated emails. However, existing log system can only record emails that is sent when the user click "send" button on any email page. Other emails that are sent automatically, such as email for general notification, is not recorded/logged. In this code, I add some lines to make every sent mails to be copied and recorded in table "mailsent". You have to create this table by yourself in OCS' database. How to use: copy this file into directory lib/pkp/classes/mail (dont forget to backup the original file beforehand)