1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 11:46:38 +02:00

Use utf-8 encoding for outgoing email (#286)

This commit is contained in:
k4bek4be
2022-01-09 20:01:45 +01:00
committed by GitHub
parent d4632e5286
commit d895a3aa01
+2
View File
@@ -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");