summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-09 21:27:08 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-09 21:27:08 +0000
commitac3c205cf85451fccc5248bffd04b5d20a57f0af (patch)
treeec46c566f3a4627cea2090a4581357286ad5fee3
parentMailServer setting needs port number, add to the default (diff)
downloadgentoobrowse-api-ac3c205cf85451fccc5248bffd04b5d20a57f0af.tar.bz2
gentoobrowse-api-ac3c205cf85451fccc5248bffd04b5d20a57f0af.tar.xz
gentoobrowse-api-ac3c205cf85451fccc5248bffd04b5d20a57f0af.zip
Fix content-type of emails to correctly set charset
-rw-r--r--gentoobrowse-api/service/notifications/mailserverimpl.cpp2
1 files changed, 1 insertions, 1 deletions
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--<<divider>>\r\nContent-Type: " + p->mimetype + "; utf-8\r\n\r\n");
+ parts.emplace_back("\r\n--<<divider>>\r\nContent-Type: " + p->mimetype + "; charset=\"utf-8\"\r\n\r\n");
parts.emplace_back(p->payload);
}
parts.emplace_back("\r\n--<<divider>>--\r\n");