Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-372

Update EmailLog table only when Email has been physically sent

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.2.0-B1
    • Component/s: E-mails
    • Labels:
      None

      Description

      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.

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
                Developer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: