use Bugzilla::Mailer;
use Bugzilla::Hook;
+use Encode qw();
use Date::Parse;
use Date::Format;
use Scalar::Util qw(blessed);
my @parts = (Email::MIME->create(
attributes => {content_type => "text/plain",},
body => $msg_text,
+ encode_check => Encode::FB_DEFAULT
));
if ($user->setting('email_format') eq 'html') {
$template->process("email/bugmail.html.tmpl", $vars, \$msg_html)
Email::MIME->create(
attributes => {content_type => "text/html",},
body => $msg_html,
+ encode_check => Encode::FB_DEFAULT
);
}
my $dbh = Bugzilla->dbh;
my $email = ref $msg ? $msg : Email::MIME->new($msg);
+ $email->encode_check_set(Encode::FB_DEFAULT);
# Ensure that we are not sending emails too quickly to recipients.
if (Bugzilla->get_param_with_override('use_mailer_queue')