From b188eb6882ac8e0203c4ffdea667b1dfac7a278b Mon Sep 17 00:00:00 2001 From: Hirofumi Kosaka Date: Mon, 12 Sep 2016 19:16:39 +0900 Subject: [PATCH] Avoid eMail misses new-lines of a message when non-ascii included. --- pandora_server/lib/PandoraFMS/Core.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index edb7a80727..c6078aeb0c 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1080,7 +1080,7 @@ sub pandora_execute_action ($$$$$$$$$;$) { # non-ascii chars should be encoded in UTF-8. if ($field3 =~ /[^[:ascii:]]/o) { $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