notify_email: Add charset in Content-Type header (seems required by some picky spam...
authorManuel CISSÉ <manuel_cisse@yahoo.fr>
Fri, 15 Feb 2013 10:03:00 +0000 (11:03 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 5 Apr 2013 06:03:14 +0000 (08:03 +0200)
Signed-off-by: Florian Forster <octo@collectd.org>
src/notify_email.c

index cd216ca..24c66ec 100644 (file)
@@ -258,7 +258,7 @@ static int notify_email_notification (const notification_t *n,
   /* Let's make RFC822 message text with \r\n EOLs */
   ssnprintf (buf, buf_len,
       "MIME-Version: 1.0\r\n"
-      "Content-Type: text/plain;\r\n"
+      "Content-Type: text/plain; charset=\"US-ASCII\"\r\n"
       "Content-Transfer-Encoding: 8bit\r\n"
       "Subject: %s\r\n"
       "\r\n"