summaryrefslogtreecommitdiff
path: root/src/mail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail.cpp')
-rw-r--r--src/mail.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mail.cpp b/src/mail.cpp
index 2f765dac4..c5e465666 100644
--- a/src/mail.cpp
+++ b/src/mail.cpp
@@ -1,6 +1,6 @@
/*
*
- * (C) 2003-2021 Anope Team
+ * (C) 2003-2022 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -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");