Index: branches/5.2.x/core/kernel/utility/email_send.php =================================================================== diff -u -N -r16684 -r16699 --- branches/5.2.x/core/kernel/utility/email_send.php (.../email_send.php) (revision 16684) +++ branches/5.2.x/core/kernel/utility/email_send.php (.../email_send.php) (revision 16699) @@ -1,6 +1,6 @@ SetCharset(null, true); $this->_logData = Array (); + $this->Application->removeObject('email-log'); } /** @@ -2132,8 +2133,17 @@ $result = $this->$send_method($message_headers, $message_body); if ( $result && $this->_logData ) { - // add e-mail log record - $this->Conn->doInsert($this->_logData, TABLE_PREFIX . 'EmailLog'); + /** @var kDBItem $email_log */ + $email_log = $this->Application->recallObject( + 'email-log', + null, + array('skip_autoload' => true) + ); + + $email_log->Clear(); + $email_log->SetDBFieldsFromHash($this->_logData); + $email_log->UpdateFormattersSubFields(); + $email_log->Create(); } if ( $immediate_clear ) {