summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork4bek4be <34816207+k4bek4be@users.noreply.github.com>2022-01-09 20:01:45 +0100
committerGitHub <noreply@github.com>2022-01-09 19:01:45 +0000
commitd895a3aa017f02ceeafddfd54432abb43b9497cf (patch)
tree762f73485d10adc4271371eeeb9aff474c1bf252
parentd4632e528683995093d8cd30f445989cb78ddb5f (diff)
Use utf-8 encoding for outgoing email (#286)
-rw-r--r--src/mail.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mail.cpp b/src/mail.cpp
index 1bff1953e..ee947c07f 100644
--- a/src/mail.cpp
+++ b/src/mail.cpp
@@ -41,6 +41,8 @@ void Mail::Message::Run()
else
fprintf(pipe, "To: \"%s\" <%s>\n", mail_to.c_str(), addr.c_str());
fprintf(pipe, "Subject: %s\n", subject.c_str());
+ fprintf(pipe, "Content-Type: text/plain; charset=UTF-8;\n");
+ fprintf(pipe, "Content-Transfer-Encoding: 8bit\n");
fprintf(pipe, "\n");
fprintf(pipe, "%s", message.c_str());
fprintf(pipe, "\n.\n");