Insert delivery record to t_send_email_log on successful send
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -352,6 +352,11 @@ foreach ($rows as $row) {
|
||||
T_SendEmailLastUpdated = NOW()
|
||||
WHERE T_SendEmailID = ?
|
||||
")->execute([$id]);
|
||||
$pdo->prepare("
|
||||
INSERT INTO t_send_email_log
|
||||
(T_SendEmailLogT_SendEmailID, T_SendEmailLogRecepient, T_SendEmailLogStatus, T_SendEmailLogResponse, T_SendEmailLogCreated)
|
||||
VALUES (?, ?, 'D', NULL, NOW())
|
||||
")->execute([$id, $recipient]);
|
||||
} else {
|
||||
log_msg(" Error: {$err}");
|
||||
$pdo->prepare("
|
||||
|
||||
Reference in New Issue
Block a user