This commit is contained in:
David Goodwin committed 2021-09-23 19:07:26 +01:00
1 parent 79c9206338
commit 031de3a773
1 file changed
+7 -1
+7 -1
View File
@@ -496,10 +496,16 @@ sub send_vacation_email {
$subject = Encode::encode_utf8($subject) if(Encode::is_utf8($subject));
$body = Encode::encode_utf8($body) if(Encode::is_utf8($body));
$email_from = $from;
if($friendly_from ne '') {
$email_from = encode_mimewords($friendly_from, 'Charset', 'UTF-8') . " $from <$from>";
}
$email = Email::Simple->create(
header => [
To => $to,
From => $from,
From => $email_from,
Subject => encode_mimewords($subject, 'Charset', 'UTF-8'),
Precedence => 'junk',
'Content-Type' => "text/plain; charset=utf-8",