From c9495e09a6918d62d5637323290a1fd18f426471 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 9 Jan 2017 21:27:08 +0000 Subject: Fix content-type of emails to correctly set charset --- gentoobrowse-api/service/notifications/mailserverimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gentoobrowse-api/service/notifications/mailserverimpl.cpp b/gentoobrowse-api/service/notifications/mailserverimpl.cpp index 8e4d229..ccc7180 100644 --- a/gentoobrowse-api/service/notifications/mailserverimpl.cpp +++ b/gentoobrowse-api/service/notifications/mailserverimpl.cpp @@ -25,7 +25,7 @@ namespace Gentoo { parts.emplace_back("Content-Transfer-Encoding: binary\r\n"); smtp_add_recipient(message, msg->to.address.c_str()); for (const auto & p : msg->body) { - parts.emplace_back("\r\n--<>\r\nContent-Type: " + p->mimetype + "; utf-8\r\n\r\n"); + parts.emplace_back("\r\n--<>\r\nContent-Type: " + p->mimetype + "; charset=\"utf-8\"\r\n\r\n"); parts.emplace_back(p->payload); } parts.emplace_back("\r\n--<>--\r\n"); -- cgit v1.2.3