diff --git a/providers/class.two-factor-email.php b/providers/class.two-factor-email.php index 17788571..ce2d4231 100644 --- a/providers/class.two-factor-email.php +++ b/providers/class.two-factor-email.php @@ -148,7 +148,7 @@ public function generate_and_email_token( $user ) { $token = $this->generate_token( $user->ID ); /* translators: %s: site name */ - $subject = wp_strip_all_tags( sprintf( __( 'Your login confirmation code for %s', 'two-factor' ), get_bloginfo( 'name' ) ) ); + $subject = wp_strip_all_tags( sprintf( __( 'Your login confirmation code for %s', 'two-factor' ), mb_encode_mimeheader( get_option( 'blogname' ), 'UTF-8' ) ) ); /* translators: %s: token */ $message = wp_strip_all_tags( sprintf( __( 'Enter %s to log in.', 'two-factor' ), $token ) );