Skip to content

Commit

Permalink
Merge branch 'fix-email-formatting'
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubboucek committed Dec 4, 2019
2 parents 20e4632 + ca6e5a4 commit 550b07b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit 550b07b

Please sign in to comment.