From d895a3aa017f02ceeafddfd54432abb43b9497cf Mon Sep 17 00:00:00 2001 From: k4bek4be <34816207+k4bek4be@users.noreply.github.com> Date: Sun, 9 Jan 2022 20:01:45 +0100 Subject: Use utf-8 encoding for outgoing email (#286) --- src/mail.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mail.cpp') 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"); -- cgit