fixed error in loop option email with _name
This commit is contained in:
@@ -39,6 +39,7 @@ function prepare_emails_CIPF($email_name, $user_id) {
|
||||
}
|
||||
$user = get_user_by('id', $user_id);
|
||||
$user_email = $user->user_email;
|
||||
$headers = array('Content-Type: text/html; charset=UTF-8');
|
||||
|
||||
|
||||
$emails_option = Plgntls::get_option_safe($emails_option_object);
|
||||
@@ -57,7 +58,7 @@ function prepare_emails_CIPF($email_name, $user_id) {
|
||||
$tmp_email['to'] = $email['notification_to'];
|
||||
$tmp_email['subject'] = $email['notification_subject'];
|
||||
$tmp_email['message'] = $email['notification_message'];
|
||||
$tmp_email['headers'] = array('Content-Type: text/html; charset=UTF-8');
|
||||
$tmp_email['headers'] = $headers;
|
||||
$emails[] = $tmp_email;
|
||||
}
|
||||
if ($email['confirmation_send']) {
|
||||
@@ -65,7 +66,7 @@ function prepare_emails_CIPF($email_name, $user_id) {
|
||||
$tmp_email['to'] = $user_email;
|
||||
$tmp_email['subject'] = $email['confirmation_subject'];
|
||||
$tmp_email['message'] = $email['confirmation_message'];
|
||||
$tmp_email['headers'] = array('Content-Type: text/html; charset=UTF-8');
|
||||
$tmp_email['headers'] = $headers;
|
||||
$emails[] = $tmp_email;
|
||||
}
|
||||
return $emails;
|
||||
|
||||
Reference in New Issue
Block a user