Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/utility/email_send.php
Show First 20 Lines • Show All 2126 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
if ( $composed ) { | if ( $composed ) { | ||||
if ( $immediate_send === true ) { | if ( $immediate_send === true ) { | ||||
$send_method = 'Send' . $this->sendMethod; | $send_method = 'Send' . $this->sendMethod; | ||||
$result = $this->$send_method($message_headers, $message_body); | $result = $this->$send_method($message_headers, $message_body); | ||||
if ( $result && $this->_logData ) { | if ( $result && $this->_logData ) { | ||||
// add e-mail log record | /** @var kDBItem $email_log */ | ||||
$this->Conn->doInsert($this->_logData, TABLE_PREFIX . 'EmailLog'); | $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 ) { | if ( $immediate_clear ) { | ||||
$this->Clear(); | $this->Clear(); | ||||
} | } | ||||
return $result; | return $result; | ||||
} | } | ||||
Show All 37 Lines |