handle reminders before card expiration and account deletion

This commit is contained in:
asus
2024-04-11 11:34:27 +02:00
parent 6ecffc25f7
commit 6a7de4dadd
5 changed files with 386 additions and 111 deletions

View File

@@ -100,9 +100,9 @@ function send_emails_CIPF($email_name, $user_id = null) {
foreach ($emails as $email) {
error_log('Email: ' . json_encode($email));
$sent = wp_mail($email['to'], $email['subject'], $email['message'], $email['headers']);
}
if (!$sent) {
error_log('Email sending failed!: ' . json_encode($email));
if (!$sent) {
error_log('Email sending failed!: ' . json_encode($email));
}
}
}