Child pages
  • [emails] Ensure, to create record in EmailLog table only, when email is actually sent
Skip to end of metadata
Go to start of metadata

Imported From: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/0b67fe3fe5da1229#

Currently record in EmailLog table is created after "kEmailSendingHelper::Deliver" method is called. This approach is correct in most cases, but when email is placed into email queue and is sent later via cron, then log record is created immediately.

Solution

I propose to create "kEmailSendingHelper::setLogData" method, that should accept EmailLog table fields (e.g. fromuser, event, EventParams) and store all given data in "kEmailSendingHelper::_logData" attribute. Add new field LogData to EmailQueue table and store "kEmailSendingHelper::_logData" attribute contents in case, when email is placed into queue. In case, when Deliver method is called it will use log data stored before to create log record. Method "kEmailSendingHelper::Clear" should also clear log data stored before.

Related Tasks

INP-372 - Getting issue details... STATUS

1 Comment

  1. New issue has been filed for this bug:

    447: Update EmailLog table only when Email has been physically sent

    INP-372 - Getting issue details... STATUS


    DA.