Here's my $.02:
In my opinion, LiveCycle is not the best place to perform this logging. LiveCycle is not actually sending the email, it's just sending a request to a mail server to send the email. Therefore, LiveCycle would not have important information about the email, such as the actual sent date/time, whether it was able to be delivered, email headers, etc.
One of my customers required that some of the email messages sent by LiveCycle be archived for compliance purposes. We decided to leverage the capabilities of the Exchange server. What we did was set up a public Outlook folder and email-enabled it with a mail address ('lcnotif@acme.com' for example). What this allows you to do is send an email to that address and it will automatically be archived into the public folder. For more information on setting this up, see the following article:
http://www.msexchange.org/articles/MF021.htmlWhat we then did was any time we needed to archive an email that was being sent from LiveCycle, we BCC-ed the 'lcnotif@acme.com' address, which meant that a copy of it would be sent to the public folder. This gave us several benefits:
1) It gave us an accurate audit trail of the emails sent by LiveCycle, including date/timestamps, recipients, and a full email header that could be examined if necessary.
2) It gave us a central location where the audit history could be stored and permissions could be assigned to individuals or groups for viewing the history.
3) It allowed us to leverage some of the retention policies available with Outlook. For this customer, the messages only needed to be saved for 60 days. A retention policy was set up to automatically delete the messages after 60 days.
This gave us a very nice solution with a very minimal amount of effort and zero customization on the LiveCycle side.
Justin Klei
Cardinal Solutions Group