File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ use Bugzilla::Comment;
2020use Bugzilla::Mailer;
2121use Bugzilla::Hook;
2222
23+ use Encode qw( ) ;
2324use Date::Parse;
2425use Date::Format;
2526use Scalar::Util qw( blessed) ;
@@ -521,6 +522,7 @@ sub _generate_bugmail {
521522 my @parts = (Email::MIME-> create(
522523 attributes => {content_type => " text/plain" ,},
523524 body => $msg_text ,
525+ encode_check => Encode::FB_DEFAULT
524526 ));
525527 if ($user -> setting(' email_format' ) eq ' html' ) {
526528 $template -> process(" email/bugmail.html.tmpl" , $vars , \$msg_html )
@@ -529,6 +531,7 @@ sub _generate_bugmail {
529531 Email::MIME-> create(
530532 attributes => {content_type => " text/html" ,},
531533 body => $msg_html ,
534+ encode_check => Encode::FB_DEFAULT
532535 );
533536 }
534537
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ sub MessageToMTA {
4848 my $dbh = Bugzilla-> dbh;
4949
5050 my $email = ref $msg ? $msg : Email::MIME-> new($msg );
51+ $email -> encode_check_set(Encode::FB_DEFAULT);
5152
5253 # Ensure that we are not sending emails too quickly to recipients.
5354 if (Bugzilla-> get_param_with_override(' use_mailer_queue' )
You can’t perform that action at this time.
0 commit comments