Avoid eMail misses new-lines of a message when non-ascii included.

This commit is contained in:
Hirofumi Kosaka 2016-09-12 19:16:39 +09:00
parent eaa98269b2
commit dac4b25b99

View File

@ -1073,7 +1073,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
# non-ascii chars should be encoded in UTF-8. # non-ascii chars should be encoded in UTF-8.
if ($field3 =~ /[^[:ascii:]]/o) { if ($field3 =~ /[^[:ascii:]]/o) {
$field3 = encode("UTF-8", $field3); $field3 = encode("UTF-8", $field3);
$content_type = 'text/html; charset="UTF-8"'; $content_type = 'text/plain; charset="UTF-8"';
} }
# Build the mail with attached content # Build the mail with attached content