Skip to content

Commit

Permalink
convert body text to Email::MIME object in representative email
Browse files Browse the repository at this point in the history
If we don't do this then UTF-8 characters break message building
  • Loading branch information
struan committed Sep 15, 2016
1 parent e4978ee commit 6e4ef2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perllib/FYR/Queue.pm
Expand Up @@ -945,6 +945,9 @@ sub make_representative_email ($$) {
$headers->{From} = mySociety::Email::format_email_address($msg->{sender_name}, $sender);
$headers->{'Reply-To'} = mySociety::Email::format_email_address($msg->{sender_name}, $msg->{sender_email});
}

$bodytext = build_text_email($bodytext);

return Email::MIME->create(
header_str => [%$headers],
parts => [ $bodytext ],
Expand Down

0 comments on commit 6e4ef2a

Please sign in to comment.