handle reminders before card expiration and account deletion
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user