diff --git a/src/Cron.php b/src/Cron.php index c8586d6..2799bef 100644 --- a/src/Cron.php +++ b/src/Cron.php @@ -108,7 +108,8 @@ public function send_user_has_access_to_post_notification() { $userdata = get_userdata( $user_id ); if ( ! get_user_meta( $user_id, SIMPLESHOP_PREFIX . 'notification_email_sent_' . $post->ID, true ) ) { - wp_mail( $userdata->user_email, $email_subject, $email_text ); + $headers = [ 'Content-Type: text/html; charset=UTF-8' ]; + wp_mail( $userdata->user_email, $email_subject, $email_text, $headers ); update_user_meta( $user_id, SIMPLESHOP_PREFIX . 'notification_email_sent_' . $post->ID, 1 ); } }